Hey Arnault, arnault a écrit : > My script is ok for this but images disappear in few seconds !! > WHY ?
The immediate reason is: you use effects as if they were synchronous, which they aren't: your "new Effect" calls return immediately, so you try to execute a Fade/change/Appear *in immediate sequence*. This won't work. What you need is Event queues. It's also the only way to make your over/out ergonomy work. Also, your JS code breaks a couple rules. For instance, your ajouter_Stay function use *global* variables (you didn't declare them with "var", so they're global by default), which means you might run into issues if you hover over multiple items too rapidly. Anyway, this code is better written using a RegExp. Give me a couple minutes to fix your example and I'll post the resulting code here. -- Christophe Porteneuve aka TDD [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 -~----------~----~----~----~------~----~------~--~---
