<script language="Javascript">
function getIE(e){
var obj=e;
var t=e.offsetTop;
var l=e.offsetLeft;
while(e=e.offsetParent){
t+=e.offsetTop; l+=e.offsetLeft;
}
t=parseInt(t)+parseInt(e.offsetHeight)
l=parseInt(l)+parseInt(e.offsetWidth)
alert("top="+t+"/nleft="+l);
}
getIE(document.getElementById("tupian"))
</script>
function getIE(e){
var obj=e;
var t=e.offsetTop;
var l=e.offsetLeft;
while(e=e.offsetParent){
t+=e.offsetTop; l+=e.offsetLeft;
}
t=parseInt(t)+parseInt(e.offsetHeight)
l=parseInt(l)+parseInt(e.offsetWidth)
alert("top="+t+"/nleft="+l);
}
getIE(document.getElementById("tupian"))
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货