<div class="codetitle"> <span><a style="CURSOR: pointer" data="88355" class="copybut" id="copybut88355" onclick="doCopy('code88355')"><u>複製程式碼</u></a></span>如下程式碼:</div> <div class="codebody" id="code88355"> <br>function doThis() <br>{ <br> <br>function doThis() <br>{ <br> .getElementById("addYear"); <br>a.style.left=(document.body.clientWidth/2-a.clientWidth/2) "px"; </div>a.style.top=(document.body.scrollTop document.body.clientHeight/2-a.clientHeight/2) "px"; }