<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>var a = document .getElementById("addyear"); <br>a.style.left=(document.body.clientWidth/2-a.clientWidth/2) "px"; <br>a.style.top=(document.body.scrollTop document.body.clientHeight/2-a.clientHeight/2) "px"; <br>} <br> </div>