Revision: 5045
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 7, 2008 05:49 by Butscharoni
Initial Code
// this function determines whether the event is the equivalent of the microsoft // mouseleave or mouseenter events. function isMouseLeaveOrEnter(e, handler) { if (e.type != 'mouseout' && e.type != 'mouseover') return false; var reltg = e.relatedTarget ? e.relatedTarget : e.type == 'mouseout' ? e.toElement : e.fromElement; while (reltg && reltg != handler) reltg = reltg.parentNode; return (reltg != handler); }
Initial URL
http://www.dynamic-tools.net/toolbox/isMouseLeaveOrEnter/
Initial Description
So the event is fired only once when hovering over child elements
Initial Title
IsMouseLeaveOrEnter - Fix for mouseover/mouseout
Initial Tags
Initial Language
JavaScript