469,160 Members | 1,839 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

IE onMouseOut bug when associated with a <table>?

Try out the following code:
<html>
<body>
<table onMouseOut="alert('out');" width="50%" height="50%"
bgcolor=yellow><tr><td>
<table width="100%" height="100%"><tr valign=middle>
<td align=center bgcolor=lightblue>1</td>
<td align=center bgcolor=palegreen>2</td>
</tr></table>
</td></tr></table>
</body>
</html>

The outer table only has one cell which contains the inner table, and the
onMouseOut handler is associated with this outer table. Yet, the handler gets
triggered when you move between the cells of the inner table. Am I going
crazy, or is this some kind of bug in IE? I even tried wrapping the inner
table inside <div> tags, instead of an outer table and it did the same thing.
I would like to trigger the handler only when the mouse pointer leaves the
entire area, not each individual cell.

-Eric
Jul 20 '05 #1
1 4718
"Eric Adem" <ec****@megapathdsl.net> wrote in message
news:10*************@corp.supernews.com...
Try out the following code:
<html>
<body>
<table onMouseOut="alert('out');" width="50%" height="50%"
bgcolor=yellow><tr><td>
<table width="100%" height="100%"><tr valign=middle>
<td align=center bgcolor=lightblue>1</td>
<td align=center bgcolor=palegreen>2</td>
</tr></table>
</td></tr></table>
</body>
</html>

The outer table only has one cell which contains the inner table, and the
onMouseOut handler is associated with this outer table. Yet, the handler gets triggered when you move between the cells of the inner table. Am I going
crazy, or is this some kind of bug in IE? I even tried wrapping the inner
table inside <div> tags, instead of an outer table and it did the same thing. I would like to trigger the handler only when the mouse pointer leaves the
entire area, not each individual cell.


This sounds a little bit like event bubbling in the DOM:
http://www.w3.org/TR/2000/REC-DOM-Le...-flow-bubbling

But I could be wrong.
Regards,
Peter Foti
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by bearclaws | last post: by
61 posts views Thread by Toby Austin | last post: by
19 posts views Thread by CMAR | last post: by
4 posts views Thread by He Shiming | last post: by
1 post views Thread by prefersgolfing | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.