87,994
社区成员
发帖
与我相关
我的任务
分享<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script>
function move(){
document.getElementById('x').value = window.event.clientX + document.body.scrollLeft - document.body.clientLeft;
document.getElementById('y').value = window.event.clientY + document.body.scrollTop - document.body.clientTop;
}
document.onmousemove = move;
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="x" type="text" />
<input id="y" type="text" /></div>
</form>
</body>
</html>