我使用滑块的jssor插件。我添加了三张幻灯片。我想在最后一张幻灯片上结束幻灯片放映。任何人都可以帮我找到解决方案。
答案 0 :(得分:0)
<script>
jQuery(document).ready(function ($) {
var options = {
$AutoPlay: true,
$DragOrientation: 3 //[Optional] Orientation to drag slide, 0 no drag, 1 horizental, 2 vertical, 3 either, default value is 1 (Note that the $DragOrientation should be the same as $PlayOrientation when $DisplayPieces is greater than 1, or parking position is 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>