If you're using the latest Prototype, you can observe mousenter and
mouseleave, which do precisely what you want. Otherwise you have to go
through a bunch of hoops that determine if the event was fired on the
parent element or on one of its children. I believe that's more or
less what the mousenter/leave observers do.
Walter
On Feb 17, 2010, at 4:40 PM, louis w wrote:
Refer to the link below. I have a "dropdown" html element which has an
event observer looking for mouseover. It's working, but it
continuously fires mouseover events while you are mousing over the
other elements inside it. I am guessing this is because of bubbling.
Is there a way to only make it fire the event on the initial
mouseover? I want it to do an Effect and this is breaking the effect.
I am sure it's just something basic I am not doing.
Thanks for the help.
http://tinyurl.com/y88rcrz (open firebug)
--
You received this message because you are subscribed to the Google
Groups "Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
.
To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com
.
For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en
.
--
You received this message because you are subscribed to the Google Groups "Prototype
& script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.