图片随鼠标移动的代码哪里有问题,请指点一下,谢谢
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
.div1{
position:absolute;
left:88px;
top:88px;
}
</style>
<script type="text/javascript" language="javascript">
function move(x,y){
obj=document.getElementById("mypic");
obj.style.left=x;
obj.style.top=y;
}
</script>
</head>
<body onMousemove="move(event.x,event.y)">
查看信息:
<div class="div1" id="mypic">
<img src="imgs/2004821135239435.gif"/>
</div>
</body>
</html>