Advertisement
Guest User

Untitled

a guest
Dec 9th, 2011
4,496
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var slider = $('#Slider2').bxSlider({
  2.         auto: false,  
  3.         speed: 1000,
  4.         mode: 'horizontal'
  5.     });
  6.  
  7.     $('#SlidePrev').click(function(){
  8.         var slideNr = slider.getCurrentSlide() - 1;
  9.  
  10.         //slider.goToSlide(slideNr);
  11.         slider.goToPreviousSlide();
  12.  
  13.     });
  14.  
  15.     $('#SlideNext').click(function(){
  16.         var slideNr = slider.getCurrentSlide() + 1;
  17.  
  18.         slider.goToSlide(slideNr);
  19.     });
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement