Hey there,
darkmatter a écrit :
> Hye there,
> this are some snippets that works for me,
>
> Effect.Puff('divSplash', {duration:3});
> var t=setTimeout("Effect.Appear('divSplash')",3000)
>
> note:
> - divSplash will puff within 3 seconds.
> - after 3 seconds more, it'll reappear again.
Just so you know:
The better way (that avoid setting a timer you don't seem to clear) is
to use the afterFinish callback option on the first effect. Also,
please always use "new " before your effect names, to allow for proper
parallel execution.
new Effect.Puff('divSplash', { duration: 3,
afterFinish: function() { new Effect.Appear('divSplash') }
});
For longer sequences, use Effect Queues.
--
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---