P
Peter
For some reason, I am unable to use the JavaScript "onMouseOut" event
handler with overlapping <div> layers in Internet Explorer 5.5+. This is
what I want to do:
First, I set one <div> layer over the other. The layer beneath (z-index:0)
has an image in it. The layer on top (z-index:1) has two paragraphs of text,
and an onMouseOut event handler. Whenever one exits the layer's "square"
area, the layer should disappear.
The problem is that, whenever I move the mouse to the space between the two
paragraphs, the onMouseOut handler kicks in even though I am still INSIDE
the <div> layer's "square".
This also happens when I move the mouse over bold text. I have set up an
(IE) example where the problem is clear:
<div style="z-index:0;width:300px;position:absolute;left:0px;top:0px">
<img src="any_image.gif" width=500 height=300>
</div>
<div onMouseOut="document.all.box1b.style.visibility = 'hidden';" id="box1b"
style="z-index:1;width:300px;position:absolute;left:125px;top:100px;">
<p>Between this paragraph and the next, there is a space. When jumping with
the mouse pointer from this paragraph<br><br>to this one, the
<b>onMouseOut</b> should not kick in, yet it does. Why? The same happens
when you move the pointer over <b>bold text</b>.</p>
</div>
Is this a bug in Internet Explorer, or is there a reason and a solution for
this behavior?
In advance, I appreciate your help. Regards,
Peter
handler with overlapping <div> layers in Internet Explorer 5.5+. This is
what I want to do:
First, I set one <div> layer over the other. The layer beneath (z-index:0)
has an image in it. The layer on top (z-index:1) has two paragraphs of text,
and an onMouseOut event handler. Whenever one exits the layer's "square"
area, the layer should disappear.
The problem is that, whenever I move the mouse to the space between the two
paragraphs, the onMouseOut handler kicks in even though I am still INSIDE
the <div> layer's "square".
This also happens when I move the mouse over bold text. I have set up an
(IE) example where the problem is clear:
<div style="z-index:0;width:300px;position:absolute;left:0px;top:0px">
<img src="any_image.gif" width=500 height=300>
</div>
<div onMouseOut="document.all.box1b.style.visibility = 'hidden';" id="box1b"
style="z-index:1;width:300px;position:absolute;left:125px;top:100px;">
<p>Between this paragraph and the next, there is a space. When jumping with
the mouse pointer from this paragraph<br><br>to this one, the
<b>onMouseOut</b> should not kick in, yet it does. Why? The same happens
when you move the pointer over <b>bold text</b>.</p>
</div>
Is this a bug in Internet Explorer, or is there a reason and a solution for
this behavior?
In advance, I appreciate your help. Regards,
Peter