开发者

Jquery Cycle plugin, how to syntax cycle duration

i just used the jQuery Cycle plugin on a website.

I'm HORRIBLE with jquery syntaxing so I dont know the correct way to tell Cycler to fade my images every 2-3 seconds instead of 5 seconds here's the code in my index.html <head>

$(document).ready(function() {
   $('.slideshow').cycle({
        fx: 'fade'
    });
});

please, id love to know how to correctly tell jquery 3开发者_开发技巧 seconds and cose the statement aswell.

Im just so bad with javascript.


Use the timeout option.

$(document).ready(function() {
   $('.slideshow').cycle({
        fx: 'fade',
        timeout: 2500 // milliseconds = 2.5 seconds
    });
});
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜