87,918
社区成员
发帖
与我相关
我的任务
分享
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title></title>
<script type="text/javascript">
function mouseoutHandler(oEvent)
{
var oElem = oEvent.toElement || oEvent.relatedTarget;
if (oElem.id == "div2")
{
window.alert("ok");
}
}
</script>
</head>
<body>
<div onmouseout="mouseoutHandler(event)" id="div1">div1</div>
<div id="div2">div2</div>
</body>
</html>