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
})
精彩评论