• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Execute scriptaculous effect within JS loop

joerocket23

Weaksauce
Joined
Sep 15, 2007
Messages
88
Another question for the evening...

What would be the correct syntax for passing the control variable of a JavaScript loop as an argument of a function?

Code:
for (id=1; id<=5; id++;){
Effect.Fade('[id]', {duration:.6, delay:1});
}

I am trying to loop through IDs 1-5 and apply the Scriptaculous Fade effect to each. I'm not sure what would be the correct syntax for that. Any idea?
 
Back
Top