javascript 如何获取IE滚动条的纵向位置
比如我刷新页面,滚动条会自动滚动到之前的位置,我想知道现在的位置该怎么做
[解决办法]
<script language="javascript" type="text/javascript">var Body=document.compatMode!="BackCompat" ? document.documentElement: document.body;document.write(new Array(0).join("<br>")) //new Array(10).join("<br>")var init_pos=last_pos=document.getElementById("你的loading层ID").style.topsetInterval(function scrollit(){target_pos=Body.scrollTop+init_posstep=(target_pos-last_pos)/1|0document.getElementById("你的loading层ID").style.top+=step last_pos+=step },1)</script>