<div class="codetitle"> <span><a style="CURSOR: pointer" data="21473" class="copybut" id="copybut21473" onclick="doCopy('code21473')"><u>複製程式碼</u></a></span>如下程式碼:</div> <div class="codebody" id="code21473"> <br><script language="javascript"><BR>var goto_type = - 1;<BR>var goto_top_itv = 0;<BR>函數goto_top_timer() {<BR> var y = goto_top_type == 1 ? document.documentElement.scrollTop<BR> : document.body.scrollTop;<BR> var moveby = 15;<BR> y -= Math.ceil(y <BR> y = 0;<BR> }<BR> if (goto_top_type == 1) {<BR> document.documentElement.scrollTop = y;<BR> 戊<BR> }<BR> if (y == 0) {<BR> clearInterval(goto_top_itv);<BR> goto_top_itv = 0;<BR>@}<BR> (goto_top_itv == 0) {<BR> if (document.documentElement && document.documentElement.scrollTop) {<BR> goto_top_type = 1,<BR> > > goto_top_type = 2;<BR> } else {<BR> goto_top_type = 0;<BR> }<BR> if (goto_top__> }<BR> if (goto_top_stype > 0) {<tiptopp藍色', 50); <BR> }<BR> }<BR>}<BR></script><br><a href="javascript:void(0)" onclick="goto_top()">【回頂端】</a ><br><br></a> </div>