J
Jean-Gael GRICOURT
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.getElementById('AREA').style.visibility = 'visible';
}
function areaIn() {
nbIn++;
window.status = "out: " + nbOut + " in: " + nbIn;
}
function areaOut() {
nbOut++;
window.status = "out: " + nbOut + " in: " + nbIn;
}
</script>
</head>
<body>
<a href="javascript:show()">SHOW DIV</a>
<p>
<div id="AREA" size=5 style="visibility: hidden"
onmouseover="javascript:areaIn()" onmouseout="javascript:areaOut()">
<select size=5>
<option>value01
<option>value02
<option>value03
<option>value04
<option>value05
<option>value06
</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.getElementById('AREA').style.visibility = 'visible';
}
function areaIn() {
nbIn++;
window.status = "out: " + nbOut + " in: " + nbIn;
}
function areaOut() {
nbOut++;
window.status = "out: " + nbOut + " in: " + nbIn;
}
</script>
</head>
<body>
<a href="javascript:show()">SHOW DIV</a>
<p>
<div id="AREA" size=5 style="visibility: hidden"
onmouseover="javascript:areaIn()" onmouseout="javascript:areaOut()">
<select size=5>
<option>value01
<option>value02
<option>value03
<option>value04
<option>value05
<option>value06
</select>
</div>
</body>
</html>