PDA

View Full Version : Var speed in jQuery??



javanewbie7
01-24-2011, 09:06 PM
Hello,

I'm working on a rotator and I'm needing to slow it down. I think I would use var speed right? How would I use it in this script?

<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.slideshow').cycle({
fx: 'fade' });
});
</script>

oVTech
01-24-2011, 10:19 PM
Here is a link to the list of all the options: http://jquery.malsup.com/cycle/options.html

If you open the jquery.cycle.all.latest.js (http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js) file and scroll down, you'll find the list with all the options. The one that controls the milliseconds between the slide transitions is this: timeout: 4000
the one that controls the speed of the transition is this: speed: 1000