js问题
扎德 2008-11-07 04:32:08 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript">
function out(object)
{
alert(1);
alert(event.toElement.id);
if(event.toElement.id != "zhu")
{
}
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Test</title>
</head>
<body>
<div id="zhu" style="width:200px;height:200px;background:yellow" onmouseout="out(this);">
<font id="menu" style="background:green" color="green" onmouseover="alert(2);">menu</font>
<div id="test" style="background:black" onmouseout="alert(3);alert(event.toElement.id);">
<a id="a" href="www.baidu.com">aaaaaaaaaaaa</a>
<br />
<a id="b" href="www.google.com">bbbbbbbbbb</a>
</div>
</div>
</body>
</html>
代码如上 谁能比较透彻的解释下从黄色区域移动到绿色区域的时候 ALERT报的顺序是那样的