开发者

AnythingSlider: how to restart slideshow

开发者 https://www.devze.com 2023-03-03 05:18 出处:网络
I\'m starting the slideshow in a pop up div by clicking a button using $(\'#slider2\').data(\'AnythingSlider\').startStop(true);

I'm starting the slideshow in a pop up div by clicking a button using $('#slider2').data('AnythingSlider').startStop(true);

Stopping the slideshow by $('#slider2').data('AnythingSlider').startStop(false);

When I click the same button to show again it simply continues from the slideshow that was stopped before. I want the whole slideshow t开发者_Python百科o restart again. How can I do that ?


when restarting, do this:

$('#slider2').anythingSlider(1); // Reset to first slide
$('#slider2').data('AnythingSlider').startStop(true);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号