有什么问题请到<a href='/bbs/forums.php?fid=21'>论坛</a>中发表<br>
<!-- http://www.webjx.com/ -->
<!-- http://bbs.webjx.com/ -->
<!--把下面代码放到<head>区域中-->
<script language="javascript">
var where = "";
function checkwhere(e) {
if (document.layers){
xCoord = e.x;
yCoord = e.y;
}
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>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]