Frage

I'm using the cycle.js app for jQuery but my slider wont auto start :(

$(document).ready(function(){   

$('#slideshow').after('<div id="nav" class="nav">').cycle({
    fx:     'fade',
    speed:  3000,
    timeout: 0,
    auto:  'true',
    pager:  '#nav',
    pause: 1
});

});
War es hilfreich?

Lösung

Set some duration in the timeout or else it will disable auto advance:

$('#slideshow').after('<div id="nav" class="nav">').cycle({
    fx:     'fade',
    speed:  3000,
    timeout: 3000,
    pager:  '#nav',
    pause: 1
})
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top