jquery - jssor-how to stop sliders at the lastslide automatically when autoplay is on? -
i used jssor plugin sliders. have added 3 slides. want end slideshow @ last slide. me in finding solution.
<script> jquery(document).ready(function ($) { var options = { $autoplay: true, $dragorientation: 3 //[optional] orientation drag slide, 0 no drag, 1 horizental, 2 vertical, 3 either, default value 1 (note $dragorientation should same $playorientation when $displaypieces greater 1, or parking position not 0) }; var jssor_slider1 = new $jssorslider$("slider1_container", options); function onsliderpark(slideindex, fromindex) { if (slideindex == 2) jssor_slider1.$pause(); } jssor_slider1.$on($jssorslider$.$evt_park, onsliderpark); }); </script>
Comments
Post a Comment