Skip to content

Instantly share code, notes, and snippets.

@jrichardlai
Created July 14, 2011 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrichardlai/1083597 to your computer and use it in GitHub Desktop.
Save jrichardlai/1083597 to your computer and use it in GitHub Desktop.
Added onControlsClick to jquery.bxslider.js
// In showControls()
// click next control
$nextHtml.click(function() {
base.goToNextSlide();
options.onControlsClick(base);
return false;
});
// click prev control
$prevHtml.click(function() {
base.goToPreviousSlide();
options.onControlsClick(base);
return false;
});
// to add a pause
$('#my_ticker').bxSlider({
displaySlideQty: 5,
moveSlideQty: 1,
auto: true,
pause: 2000,
onControlsClick: function(obj){
obj.stopShow();
setTimeout(function(){
obj.startShow();
}, 10000);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment