【e天下游】 【技术部落】 【FALSH专区】 【QQ世界专区】 〖明星靓照〗 QQ空间 〖黑客技术〗 〖QQ技术〗 〖免费网址大全〗
| 添加主页到收藏夹 | 把此页设为首页
Google
      
发新话题
打印

显示鼠标坐标信息

显示鼠标坐标信息

<html>
<head>
<title>网页特效|Linkweb.cn/Js|---显示鼠标坐标</title>
<meta http-equiv="Content-Type" c>
</head>

<body >
<br>
<br>
<center> </center>
<br>
<center>
<table border=1 bordercolor=#000000 borderlight=green style="border-collapse: collapse" cellpadding="0" cellspacing="0">
<tr><td align=center><font size=5 color=red face="华文中宋">
  <strong style="font-weight: 400">下面框中为脚本显示区</strong></font></td></tr>
<tr><td align=center height=80>
<SCRIPT LANGUAGE="JavaScript">
if (navigator.appName == 'Netscape')
{
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = netscapeMouseMove;
}

function netscapeMouseMove(e) {
if (e.screenX != document.test.x.value && e.screenY != document.test.y.value)
{
document.test.x.value = e.screenX;
document.test.y.value = e.screenY;
}
}

function micro$oftMouseMove() {
if (window.event.x != document.test.x.value && window.event.y != document.test.y.value)
{
document.test.x.value = window.event.x;
document.test.y.value = window.event.y;
}
}
</SCRIPT>
<FORM NAME="test">
X:
<INPUT NAME="x" SIZE="4" style="border: 1px solid #000000"> Y:
<INPUT
TYPUE="TEXT" NAME="y" SIZE="4" style="border: 1px solid #000000">
</FORM>
</td></tr></table></center>
<br>
<br>
<center>

<SCRIPT LANGUAGE="JavaScript">

<!-- hide
function goHist(a)
{
   history.go(a);
}
//-->
</script>
</center>

</body>
</html>


我就是我!! 天下没有免费的午餐!所以顶一下!
╔╩═══╗╔════╗╔════╗╔════╗            
║支持楼主╠╣再接再厉╠╣燕过留声╠╣人过留帖║           
╚◎══◎╝╚◎══◎╝╚◎══◎╝╚◎══◎╝

TOP

发新话题