稍等上代碼!!
<html><head>
<script?type="text/javascript">
function?show_coords(event){
var?x?=?event.clientX; var?y?=?event.clientY; var?say?=?document.all("coords"); say.innerHTML?=?"X:"+x+"?Y:"+y; say.style.position?=?"absolute"; say.style.left?=?x?+?30; say.style.top?=?y;}
</script>
</head>
<body?onmousemove="show_coords(event)">
<p?id="coords"></p>
</body>
<html>
希望我的回答對妳有用,有用就采納!!!謝謝!