如何让画廊自动移动

son*_*ool 7 html javascript jquery

我试图让这个画廊自动移动,但我无法在脚本中找到这样做的命令.也许我错过了什么?这是脚本.

这是脚本

http://syndicatebox.com/jquery.slidingGallery-1.2.min.js

我正在使用这个脚本

http://www.meadmiracle.com/SlidingGallery.aspx

我用它来调用脚本工作.但我无法使用此功能使其自动滑动而不点击.

<script language="javascript" type="text/javascript">
    $(function() {
        $('div.gallery img').slidingGallery({
            Lwidth: 400,
            Lheight: 300,
            Lshrink: function(dim) { return dim * 0.5; },
            gutterWidth: -8,
            container: $('div.gallery')     
        });
    });
</script>
Run Code Online (Sandbox Code Playgroud)

Gab*_*oli 8

我正在通过/sf/ask/577534191/交叉发布我的答案

<script type="text/javascript">
    var autoSlideInterval;

    function start_autoslide(){
        autoSlideInterval = setInterval( function(){
            $.galleryUtility.slideLeft() ;
        }, 5000);
    }

    function stop_autoslide(){
        clearInterval( autoSlideInterval );
    }

    $(function() {
        $('div.gallery img').slidingGallery(); 
        start_autoslide();
    });

</script>
Run Code Online (Sandbox Code Playgroud)