<script language="javascript" type="text/javascript">
<!--
function document.onmousemove()
{
x.innerHTML = "相对位置:X:" + window.event.x + " Y:" + window.event.y;
y.innerHTML = "绝对位置:X:" + window.event.screenX + " Y:" + window.event.screenY;
}
//-->
</script><div id="x"></div>
<div id="y"></div>