<div class="codetitle"> <span><a style="CURSOR: pointer" data="7143" class="copybut" id="copybut7143" onclick="doCopy('code7143')"><u>複製程式碼</u></a></span>程式碼如下:</div> <div class="codebody" id="code7143"> <br>function getScrollTop(){ varscroll; <br>if(document.documentElement&&document.documentElement.scrollTop){ <br>scrollTop=document.documentElement.scrollTop; <br>}else if(document.body){ <br>scrollTop=document.body.scrollTop; <br>} <br>返回滾動頂部; <br>} <br><br> </div>