<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>获取鼠标坐标</title>
</head>
<body>
<form method="POST" action="--WEBBOT-SELF--">
<Script>
function getCoordinate(evnt)
{
if (document.all) {
x = event.screenX;
y = event.screenY;
m = window.event.x;
n = window.event.y;
}
else {
x = evnt.screenX;
y = evnt.screenX;
m = window.event.x;
n = window.event.y;
}
status = "屏幕水平坐标:"+ x + ";屏幕垂直坐标:"+ y + " 相对网页水平坐标:" + m + "相对网页垂直坐标:" + n;
}