[Proto-Scripty] Re: Problem (propably logical one) with dynamic fadein / fadeout for a navigation menu

2008-12-18 Thread Chris
Hi, thanks for your hints, I managed to get it right that way. The code is a bit different from yours, because I dont want multiple effects to overlap. I also added a short timeout, so the effects have enough time to finish. If someone is running into similiar problems, here is the full code exam

[Proto-Scripty] Re: Problem (propably logical one) with dynamic fadein / fadeout for a navigation menu

2008-12-17 Thread Diodeus
You're right on that one. Reposition the abort code: slink.observe('mouseover', function(e) { if(running==1) { return } running=1 this.elm = Event.

[Proto-Scripty] Re: Problem (propably logical one) with dynamic fadein / fadeout for a navigation menu

2008-12-17 Thread Chris
Hi Diodeus, that wont work for me, because i am runing the function just once. This adds the event listeners to all of the images. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group.

[Proto-Scripty] Re: Problem (propably logical one) with dynamic fadein / fadeout for a navigation menu

2008-12-16 Thread Diodeus
Abort any actions if one is already running: var running = 0 function createSpecialEffects() { if(running==1) { return } // Cache needed elements elms = $$('div#products_new ul li a img'); elms.each(function(slink) { slink