<SCRIPT LANGUAGE="JavaScript">
<!--
function getAbsPoint(e)
{
var x = e.offsetLeft, y = e.offsetTop;
while(e=e.offsetParent){x += e.offsetLeft; y += e.offsetTop;}
return {"x": x, "y": y};
}
function mm()
{
var e = document.activeElement;
if(!e) return;
var xy = getAbsPoint(e);
alert("x:"+ xy.x +" y:"+ xy.y);
}
//-->
</SCRIPT>
<input type=button value=mm onclick="mm()">
<!--
function getAbsPoint(e)
{
var x = e.offsetLeft, y = e.offsetTop;
while(e=e.offsetParent){x += e.offsetLeft; y += e.offsetTop;}
return {"x": x, "y": y};
}
function mm()
{
var e = document.activeElement;
if(!e) return;
var xy = getAbsPoint(e);
alert("x:"+ xy.x +" y:"+ xy.y);
}
//-->
</SCRIPT>
<input type=button value=mm onclick="mm()">
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货