[jQuery] Re: JQuery Cycle Plugin Random Timeout

2009-09-16 Thread Mike Alsup

> 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

2009-09-16 Thread Paul

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

2009-09-09 Thread Mike Alsup



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

2009-09-08 Thread Mike Alsup

> 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

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:


$(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

2009-09-08 Thread Mike Alsup

> 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