<body>
<script language=JavaScript defer>
function KB_keepItInIE(theName,theWantTop,theWantLeft) {
theRealTop=parseInt(document.body.scrollTop)
theTrueTop=theWantTop+theRealTop
KBStatic.style.top=theTrueTop //问题所在处
theRealLeft=parseInt(document.body.scrollLeft)
theTrueLeft=theWantLeft+theRealLeft
KBStatic.style.left=theTrueLeft
} setInterval('KB_keepItInIE("KBStatic",0,640)',1) //调用
</script>
<div id="KBStatic" style="position:absolute">层的内容</div>
<script language=JavaScript defer>
function KB_keepItInIE(theName,theWantTop,theWantLeft) {
theRealTop=parseInt(document.body.scrollTop)
theTrueTop=theWantTop+theRealTop
KBStatic.style.top=theTrueTop //问题所在处
theRealLeft=parseInt(document.body.scrollLeft)
theTrueLeft=theWantLeft+theRealLeft
KBStatic.style.left=theTrueLeft
} setInterval('KB_keepItInIE("KBStatic",0,640)',1) //调用
</script>
<div id="KBStatic" style="position:absolute">层的内容</div>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货