<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>javascript</title>
<script type="text/javascript">
window.οnlοad=function(){
var odiv1=document.getElementById("div1");
var odiv2=document.getElementById("div2");
var setTimevar=null;
odiv2.οnmοuseοver=odiv1.οnmοuseοver=function(){
odiv2.style.display="block";
clearTimeout(setTimevar);
}
odiv2.οnmοuseοut=odiv1.οnmοuseοut=function(){
setTimevar=setTimeout(function(){
odiv2.style.display="none";
},1000);
}
};
</script>
</head>
<body>
<div id="div1" style="background:#C00 ; height:100px; width:100px">
</div><br/>
<div id="div2" style="background:#0F3 ; height:100px; width:100px;display:none;">
</div>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>javascript</title>
<script type="text/javascript">
window.οnlοad=function(){
var odiv1=document.getElementById("div1");
var odiv2=document.getElementById("div2");
var setTimevar=null;
odiv2.οnmοuseοver=odiv1.οnmοuseοver=function(){
odiv2.style.display="block";
clearTimeout(setTimevar);
}
odiv2.οnmοuseοut=odiv1.οnmοuseοut=function(){
setTimevar=setTimeout(function(){
odiv2.style.display="none";
},1000);
}
};
</script>
</head>
<body>
<div id="div1" style="background:#C00 ; height:100px; width:100px">
</div><br/>
<div id="div2" style="background:#0F3 ; height:100px; width:100px;display:none;">
</div>
</body>
</html>