<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
<BR><BR><BR><BR><BR><BR><BR><BR><table class="s" id="tt">
<tr><td>ddddddddddddddddd</td></tr>
</table>
<style>
.s{position:absolute;}
</style>
<script>
function a(){
document.all.tt.style.pixelTop=document.body.scrollTop+100;
window.setTimeout("a()",10);
}window.onload=a;
</script>
<BR><BR><BR><BR><BR><BR><BR><BR><table class="s" id="tt">
<tr><td>ddddddddddddddddd</td></tr>
</table>
<style>
.s{position:absolute;}
</style>
<script>
function a(){
document.all.tt.style.pixelTop=document.body.scrollTop+100;
window.setTimeout("a()",10);
}window.onload=a;
</script>
解决方案 »
- getElementsByTagName获得数组长度一直为0
- 制作多幅图片的切换,急需!!!!!!!!!!!!!!!!
- 关于setinterval()的问题
- 取不到js对象里面的值, 请大家帮忙。
- 如何获得客户端的机器名?
- WEB打印时,预览时页面总是居中,怎么可以总是在页面的上面?? 20分钟结帖
- window.open()和window.showModalDialog()的子窗口向父窗口中传值,该怎么做?高手帮帮小弟弟……
- 有关WEB打印的问题,希望各位帮忙(在线等待)
- 【求助】jquery的messager.confirm弹出后焦点不在确定按钮上?
- jsp的问题,实在解决不能了,请大神帮帮忙!
- dhtml中的atrribute和property有什么区别?
- 根据要求,让文本框可以写入信息或不可写入信息。也就是如何让其发灰。
/*
@得到控件的绝对位置
*/
function getAbsLeft(e){
var l=e.offsetLeft;
while(e=e.offsetParent)
l += e.offsetLeft;
return l;
}
function getAbsTop(e) {
var t=e.offsetTop;
while(e=e.offsetParent)
t += e.offsetTop;
return t;
}