By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,242 Members | 1,410 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,242 IT Pros & Developers. It's quick & easy.

IE onMouseOut bug when associated with a <table>?

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
"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.