Search code examples
jquerypluginscycle

jquery cycle plugin: there is no loop


If i wanted the plugin on this page to move automatically, what should i be adding?

There doesn't seems to be a reference of this option in the jquery cycle help files.

http://jquery.malsup.com/cycle/pager3.html

Thx,

Why am I getting this message?

All new questions are subjected to a "minimum quality" filter that checks for characteristics of extremely poor questions. Your question has been caught by the filter.


Solution

  • It's the timeout param. Set it like

    $('#slideshow').cycle({ 
        fx:     'turnDown', 
        speed:  'fast', 
        timeout: 2000, 
        pager:  '#nav', 
        pagerAnchorBuilder: function(idx, slide) { 
            // return selector string for existing anchor 
            return '#nav li:eq(' + idx + ') a'; 
        } 
    });
    

    It's value is in milliseconds. After that time it will change to next image.

    Check this options reference page http://jquery.malsup.com/cycle/options.html