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
You're right on that one.
Reposition the abort code:
slink.observe('mouseover', function(e) {
if(running==1) {
return
}
running=1
this.elm = Event.
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.
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