how do i stop auto sliding in my flexslider

旧时模样 提交于 2019-12-09 02:16:45

问题


do anybody know how to stop auto sliding in a flex slider. as i have loaded that slider in my mobile web page. when the page is opened it slides to the next image without any slide or tap event. so please help me to stop this auto slide transition. and make it work only when a screen is tapped or slided. thanks in advance.

here is my code..

<script type="text/javascript" charset="utf-8">
    $(window).load(function() {
        $('.flexslider').flexslider();
    });
</script>

<div class="flexslider">
    <ul class="slides">
        <li>
            <img src="img1.png"/>
        </li>
        <li>
            <img src="img2.png"/>
        </li>
    </ul>
</div>

回答1:


By default Flexslider has value slideshow: true so you have to change the value to false.

$(window).load(function() {
  $('.flexslider').flexslider({
    slideshow: false
  });
});


来源:https://stackoverflow.com/questions/14849075/how-do-i-stop-auto-sliding-in-my-flexslider

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!