BJQS Slider

Any, what function can stop the BJQS (Basic jQuery Slider) slider after, for example, click on a custom button? And of course, how to make it work again after clicking the user launch button

+4
source share
2 answers

I am also facing the same problem. However, I found the option settings.automatic = false; to prevent the slide from sliding automatically. Then I declare the variable stop : false in the default variable and check the init function :

 var init = function() { if ( settings.stop ) { settings.automatic = false; } ... } 

So, in my calling function, I just called:

 $('#banner-slide').bjqs({ animtype : 'slide', height : 357, width : 631, responsive : false, randomstart : false, stop : true }); 
0
source
 `funcion pauseSlide(){ $('#date_ss').bjqs.pauseslider(); } funcion resumeSlide(){ $('#date_ss').bjqs.resumeslider(); }` 

You must try this. call function at the touch of a button. I hope this works.

0
source

Source: https://habr.com/ru/post/1445394/


All Articles