English
<!-- http://bbs.downcodes.com/ --> <!--把下面代码放到<head>区域中--> <script language="javascript"> var where = ""; function checkwhere(e) { if (document.layers){ xCoord = e.x; yCoord = e.y; } else if (document.all){ xCoord = event.clientX; yCoord = event.clientY; } else if (document.getElementById){ xCoord = e.clientX; yCoord = e.clientY; } document.title = "X座标值= "+ xCoord + " Y座标值= " + yCoord ; } document.onmousemove = checkwhere; if(document.captureEvents) {document.captureEvents(Event.MOUSEMOVE);} </script>