[CODE]<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>获取鼠标位置</title>
<script language="javascript">
<!--
function getCoordinate(obj){
var top = window.event.clientY;
var left = window.event.clientX;
alert("鼠标坐标:X="+ left +";Y="+ top)
}
document.onmousedown = getCoordinate;
//-->
</script>
</head>
<body>
</body>
</html>[/CODE]