470,841 Members | 1,067 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,841 developers. It's quick & easy.

Emulating the onmouseenter and onmouseleave events

Hallo,

I have entered some event handling hell...

I want to mimic the functionality of IE5.5 onmouseenter and
onmouseleave events, using DOM-standard onmouseover and onmouseout
events. The subject element is a table cell that can contain any
freestyle html. I need to fire some JS when user enters the cell with
his mouse, and fire some stuff when he leaves the area. Unfortunately,
if I use onmouseover and onmouseout events, onmousout is fired when
mouse is over some inner element within the table cell contents. The
only way I currently see to handle this is reading the mouse
coordinates in the onmouseout handler and testing if the mouse is
within the cell boundary box or not. But, I am afraid, user coulf
manage to move the mouse first to some inner element, and then quickly
to a space out of the cell so that onmouseover event attached to that
cell is never fired.

Thanks for any hints,

-- Pavils
Jul 20 '05 #1
1 2911


Pavils Jurjans wrote:

I have entered some event handling hell...

I want to mimic the functionality of IE5.5 onmouseenter and
onmouseleave events, using DOM-standard onmouseover and onmouseout
events.


Check
http://www.faqts.com/knowledge_base/...d/1606/fid/145
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Colin McGuire | last post: by
3 posts views Thread by Colin McGuire | last post: by
9 posts views Thread by Giggle Girl | last post: by
5 posts views Thread by jaysonnward | last post: by
reply views Thread by =?Utf-8?B?R29yZnk=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.