开发者

Why wont my jQuery cycle.js slider autostart?

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',
   开发者_如何学C speed:  3000,
    timeout: 0,
    auto:  'true',
    pager:  '#nav',
    pause: 1
});

});


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
})
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜