jQuery   发布时间:2022-03-30  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了jquery – Tympanus Elastislide Carousel自动播放大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在为我的网站使用鼓膜Elastislide Carousel Responsive jQuery插件.该插件在我的网站上完美运行.但是,我希望casousel会自动播放.

但是,我没有找到任何自动移动轮播的代码.

Slider Plugin链接http://tympanus.net/codrops/2011/09/12/elastislide-responsive-carousel/

我正在使用的java脚本

<script type="text/javascript">

    $( '#carousel' ).elastislide( {

    // orientation 'horizontal' || 'vertical'
    orientation : 'horizontal',// sliding speed
    speed : 500,// sliding easing
    easing : 'ease-in-out',// the minimum number of items to show.
    // when we resize the window,this will make sure minItems are always shown
    // (unless of course minItems is higher than the @R_613_10586@l number of elements)
    minItems : 3,// index of the current item (left most item of the carousel)
    start : 0,// click item callBACk
    onClick : function( el,position,evt ) { return false; },onReady : function() { return true; },onBeforeSlide : function() { return false; },onAfterSlide : function() { return false; }

    } );            

</script>

任何人都可以帮助滑块如何自动播放?我试自动播放:是的.但是,不工作.

解决方法

尝试滚动属性,
scroll: 1

要么

你可以在这里找到答案,给出所有类型的旋转木马滑块

http://sorgalla.com/jcarousel/

也看到这些

http://sorgalla.com/projects/jcarousel/examples/static_auto.html

大佬总结

以上是大佬教程为你收集整理的jquery – Tympanus Elastislide Carousel自动播放全部内容,希望文章能够帮你解决jquery – Tympanus Elastislide Carousel自动播放所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。