相似内容的一种最简处理办法 dn001 2009-06-21 08:35:39 <!-- http://bbs.knowsky.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>