[jQuery] Re: Beginner Q: setTimeout on multiple objects

2009-02-02 Thread re5et
thanks for the reply, someone on IRC also told me what the problem was :) a side-question, though: when using the fadein and fadeout effects, is it normal that errors like this pile up: Warning: Error in parsing value for property 'opacity'. Declaration dropped. It works like a charm but the e

[jQuery] Re: Beginner Q: setTimeout on multiple objects

2009-02-02 Thread jQuery Lover
You are calling t=setTimeout("timedAnim(animatedLink)",getRandom()); And setTimeout will call function: timedAnim(animatedLink) When it calls it, it calls the timedAnim() with the animatedLink value which would be the last value it was set. In your case the last img's reference. See if this wo

[jQuery] Re: Beginner Q: setTimeout on multiple objects

2009-02-02 Thread re5et
this is what someone on the IRC channel said: You create n flicker timeouts, which all turn off/on the animatedLink item. Which is always the extra image. The callback is not "compiled" until it's invoked. And when it is, animatedLink is always the extra image. what does that mean?

[jQuery] Re: Beginner Q: setTimeout on multiple objects

2009-02-02 Thread re5et
sorry for double post, didn't know that it takes so long for it to appear :/