javascript - BxSlider—Click Slide for Next -
instead of using prev/next controls, i'd turn slide next button. pretty straightforward functionality, can't seem figure out.
this have:
$(document).ready(function() { $('.bxslider').bxslider({ adaptiveheight: true, easing: 'cubic-bezier(0.600, 0.060, 0.500, 1)' }); $('.bxslider').click(function() { slider.gotonextslide(); return false; }); });
firstly, create instance of slider this
var slider = $('.bxslider')....
, attach onclick same input.
something should work.
var slider = $('.bxslider').bxslider({ adaptiveheight: true, easing: 'cubic-bezier(0.600, 0.060, 0.500, 1)' }).on('click', function(){ slider.gotonextslide(); });
Comments
Post a Comment