[jQuery] Re: JQuery Cycle Plugin Random Timeout
> Given that, how would you allocate a timeout for say the first 3 > slides and then have the other slides all running at the default > timeout? Keep a counter and reference/update it in the timeoutFn. After 3 calls to the timeoutFn, return false thereafter.
[jQuery] Re: JQuery Cycle Plugin Random Timeout
Given that, how would you allocate a timeout for say the first 3 slides and then have the other slides all running at the default timeout? On Sep 9, 8:06 pm, Mike Alsup wrote: > On Sep 8, 6:48 pm, Mike Alsup wrote: > > > > > > 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: > > > >
[jQuery] Re: JQuery Cycle Plugin Random Timeout
On Sep 8, 6:48 pm, Mike Alsup wrote: > > 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: > > >
[jQuery] Re: JQuery Cycle Plugin Random Timeout
> 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: > >
[jQuery] Re: JQuery Cycle Plugin Random Timeout
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: $(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; } 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
[jQuery] Re: JQuery Cycle Plugin Random Timeout
> Hey, does anyone know how I can have the timeout change randomly for > every slide? > These demos might get you going in the right direction: http://www.malsup.com/jquery/cycle/timeout.html http://www.malsup.com/jquery/cycle/timeout2.html