Netscape 7 + div + position:fixed + onmouseover : bug ?

P

Patrice

There seems to be a bug with the events mouseOut and mouseOver of divs
when their position is fixed : when you enter the div with the mouse,
three events are fired in this order : over, out, over.

It works as expected with IE6.

Is this a known problem ?
Is there any workaround ?

Patrice

--- Sample code to try -----------------------------------------
<html>
<head>

<script language=javascript>

var T = "";

function pOver (e)
{
T +=" over";
window.status=T;
}

function pOut (e)
{
T +=" out";
window.status=T;
}

</script>
</head>

<body>

<div Style="border:solid 1px #000000; position: fixed; left: 50px;
top: 100px; width: 100px; height: 100px;"
onMouseOver="pOver (event);"
onMouseOut="pOut(event);">fixed
</div>

<div Style="border:solid 1px #000000; position: absolute; left: 200px;
top: 100px; width: 100px; height: 100px;"
onMouseOver="pOver (event);"
onMouseOut="pOut(event);">absolute
</div>

</body>
</html>
--------------------------------------------
 
C

Csaba2000

I haven't checked this myself, but have you checked that
the target of all three events is the same div?
I think that may have been an issue for me when I was
fiddling with mouseOver and Out a while back.

Csaba
 
P

Patrice

The three events (over, out and over) are fired to same div as can be
checked with event.target.

I cannot find a reason for it to work correctly when position is
absolute and not when position is fixed.

Patrice
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top