<!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">
<title>event解决IE与火狐的问题</title>
</head>
<body>
<div id="div1" style="width:400px;height:300px;background-color:#F00"></div>
<script language="javascript" type="text/javascript">
//给div加上onmousemove的事件
document.getElementById("div1");
οnmοusemοve=getPoint;
function getPoint(evt){
var event1=evt||window.event;
document.getElementById("div1").innerHTML=event1.clientX+","+event1.clientY;
}
</script>
</body>
</html>