具体代码如下:
<head runat="server"> <title></title> <script type="text/javascript" language="javascript"> var x = 0, y = 0; function MousePlace() { x = window.event.x; y = window.event.y; window.status = "X: " + x + " " + "Y: " + y + " "; } document.onmousemove = MousePlace; </script> </head>