关于div的onMouseOver和onMouseOut的问题
页面代码
<HTML>
<HEAD>
<META http-equiv='Content-Type' content='text/html; charset=gb2312'>
<TITLE></TITLE>
<script type="text/javascript">//导航
var stepover1=1;
var yPosover1=0;
var yPosout1;
var out1id;
function over1(){
Layer2.style.top=yPosover1
if(yPosover1>-20){
yPosover1=yPosover1-stepover1;
setTimeout("over1()",60);
clearTimeout(out1id);
}else{
clearTimeout(out1id);
yPosout1=yPosover1
}
}
function out1(){
out1id=setTimeout("out2()",10);
}
function out2(){
Layer2.style.top=yPosout1
if(yPosout1<0){
yPosout1=yPosout1+stepover1;
setTimeout("out2()",60);
}else{
yPosover1=yPosout1
}
}
</script>
</HEAD>
<BODY leftmargin="0" topmargin="100" marginwidth="0" marginheight="0" style="background-color:#7fa618;" oncontextmenu=self.event.returnValue=false onselectstart="return false">
<table width="778" border="1" cellspacing="0" cellpadding="0" align="center" height="600">
<tr id="yindao" style= "cursor:hand;" >
<td colspan="2" valign="top" align="center" style="position:relative;top:0;left:0;" width="60%">
<div id="Layer2" style="position:absolute; top:0;left:0;width:100%; height:50; z-index:2; border: 1px none #000000;" onMouseOver="over1()" onMouseOut="out1()">
<table width="100%" border="1" cellspacing="0" cellpadding="0" align="center">
<tr>
<td colspan="6" height="20" align="center" valign="middle">导航</td>
</tr>
<tr>
<td align="center">首页</td>
<td align="center">栏目一</td>
<td align="center">栏目二</td>
<td align="center">栏目三</td>
<td align="center">栏目四</td>
<td align="center">栏目五</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</BODY>
</HTML>
鼠标进入导航栏,导航栏上移,鼠标移出导航栏,导航栏下移。
问题是:鼠标快速通过导航栏,并不在里面停留,那么导航栏只上移,如何在快速通过时,使其下移归位?