Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Netscape 7 + div + position:fixed + onmouseover : bug ?

Reply
Thread Tools

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

 
 
Patrice
Guest
Posts: n/a
 
      10-05-2003
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>
--------------------------------------------
 
Reply With Quote
 
 
 
 
Csaba2000
Guest
Posts: n/a
 
      10-06-2003
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


 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      10-06-2003
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
<div ... /> and <div ...></div> K Viltersten ASP .Net 4 03-31-2009 07:33 PM
NS/FF don't change div offsetWidth when div innerHTML is added toand div becomes wider mscir Javascript 3 06-26-2005 04:04 PM
Onmouseover Event, Cursor property not working with Netscape or Firefox Jordan ASP .Net 1 06-10-2005 03:59 PM
Q: Div A inside Div B is larger than Div B Dwayne Madsen Javascript 1 06-01-2005 03:02 PM
netscape 4.7: onmouseover not working when i put <a> tag within a div tag Eqbal Z Javascript 6 08-27-2003 12:56 AM



Advertisments