D
DLP22192
Hi,
It appears that the onmouseover and onmouseout events do not fire for a div
that's inside another div that has a width set. Can anyone explain this?
Try the html below:
<html>
<body>
<div style="width:400px;border:solid 1px #000000"><div
onmouseover="alert('hover')" onmouseout="alert('unhover')">Neither works over
whitespace.</div></div>
<div style="border:solid 1px #000000"><div style="width:200px
onmouseover="alert('hover')" onmouseout="alert('unhover')">Only onmouseout
works over whitespace.</div></div>
<div style="border:solid 1px #000000"><div onmouseover="alert('hover')"
onmouseout="alert('unhover')">Both work over whitespace.</div></div>
</body>
</html>
Thanks,
David Perry
It appears that the onmouseover and onmouseout events do not fire for a div
that's inside another div that has a width set. Can anyone explain this?
Try the html below:
<html>
<body>
<div style="width:400px;border:solid 1px #000000"><div
onmouseover="alert('hover')" onmouseout="alert('unhover')">Neither works over
whitespace.</div></div>
<div style="border:solid 1px #000000"><div style="width:200px
onmouseover="alert('hover')" onmouseout="alert('unhover')">Only onmouseout
works over whitespace.</div></div>
<div style="border:solid 1px #000000"><div onmouseover="alert('hover')"
onmouseout="alert('unhover')">Both work over whitespace.</div></div>
</body>
</html>
Thanks,
David Perry