[jQuery] JQuery Cycle Plugin Random Timeout

2009-09-08 Thread mattjp18

Hey, does anyone know how I can have the timeout change randomly for
every slide?

Thanks,


[jQuery] Re: JQuery Cycle Plugin Random Timeout

2009-09-08 Thread mattjp18

Hey thanks Mike, I got the random timeouts working, however all the
slideshows fade in at the same time on the first transition... is
there any way around that? Here is my code:

script type=text/javascript
$(document).ready(function() {
$('.slideshow').cycle({
fx: 'fade',
  timeout: 1,
  pause: '1',
  random: '1',
  timeoutFn: calculateTimeout
});
});

function calculateTimeout(numRand) {
var numRand = Math.floor(Math.random()*5000)+2000;
return numRand;
}


/script


Also, here is a link to the site so you can see what's going on. Any
help would be much appreciated!

http://www.kinetichue.com/work