Home Notes Web development onMouseOut

onMouseOut E-mail
Sunday, 23 November 2008 22:57

I was having a major issue with getting onmouseout to work as intended on the parenthesis homepage.  The issue was event bubbling.  The mouseout was being triggered on the parent div after the mouse exited a child div.  After a couple of hours of research online and experimenting with Prototype's Event and Element objects, I came across the following patch for Prototype.js, http://dev.rubyonrails.org/attachment/ticket/8354/event_mouseenter_106rc1.patch, which basically emulates Microsoft's onmouseleave and onmouseenter methods in other browsers.