中文(繁体)
<!-- http://bbs.downcodes.com/ --> <!-- 把下面程式碼放到<head>區域--> <script language="javascript"> var where = "";函數 checkwhere(e) { if (document.layers){ xCoord = ex; y座標 = ey; } 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>