I am trying to capture mouse events when entering and leaving a DIV
layer. This test code works fine with IE 6.0 and Opera 7.21 but fails
with Mozilla/Netscape. The strange thing is that the mouse events
respond continuously whenever the mouse is moving inside the DIV area.
Does anybody have a clue about what is happenning ?
J2G
==== TEST CODE ====
<html>
<head>
<script type=text/javascript>
function show() {
nbIn=0;
nbOut=0;
document.getEle mentById('AREA' ).style.visibil ity = 'visible';
}
function areaIn() {
nbIn++;
window.status = "out: " + nbOut + " in: " + nbIn;
}
function areaOut() {
nbOut++;
window.status = "out: " + nbOut + " in: " + nbIn;
}
</script>
</head>
<body>
<a href="javascrip t:show()">SHOW DIV</a>
<p>
<div id="AREA" size=5 style="visibili ty: hidden"
onmouseover="ja vascript:areaIn ()" onmouseout="jav ascript:areaOut ()">
<select size=5>
<option>value 01
<option>value 02
<option>value 03
<option>value 04
<option>value 05
<option>value 06
</select>
</div>
</body>
</html>
layer. This test code works fine with IE 6.0 and Opera 7.21 but fails
with Mozilla/Netscape. The strange thing is that the mouse events
respond continuously whenever the mouse is moving inside the DIV area.
Does anybody have a clue about what is happenning ?
J2G
==== TEST CODE ====
<html>
<head>
<script type=text/javascript>
function show() {
nbIn=0;
nbOut=0;
document.getEle mentById('AREA' ).style.visibil ity = 'visible';
}
function areaIn() {
nbIn++;
window.status = "out: " + nbOut + " in: " + nbIn;
}
function areaOut() {
nbOut++;
window.status = "out: " + nbOut + " in: " + nbIn;
}
</script>
</head>
<body>
<a href="javascrip t:show()">SHOW DIV</a>
<p>
<div id="AREA" size=5 style="visibili ty: hidden"
onmouseover="ja vascript:areaIn ()" onmouseout="jav ascript:areaOut ()">
<select size=5>
<option>value 01
<option>value 02
<option>value 03
<option>value 04
<option>value 05
<option>value 06
</select>
</div>
</body>
</html>
Comment