<div class="codetitle"> <span><a style="CURSOR: pointer" data="53411" class="copybut" id="copybut53411" onclick="doCopy('code53411')"><u>複製代碼</u></a></span> 代碼如下:</div> <div class="codebody" id="code53411"> <br>//W3C/1. Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <br> <br> <br><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <br><title>無標題文件</title> <br><br><script type="text/javascript"> <BR>//頁面上動態時間<BR>function time() { <BR>var dt; <BR>var date = new Date(); <BR>dt = date.getFullYear() <BR> "/" <BR> date.getMonth() <BR> "/" <BR> date.getDate() <BR> " " <BR> (date.getHours () <= 9 ? '0' date.getHours() : date <BR>.getHours()) <BR> ":" <BR> ((date.getMinutes() <= 9 ? '0' date.getMinutes () : date <BR>.getMinutes())) <BR> ":" <BR> (date.getSeconds() <= 9 ? '0' date.getSeconds() : date <BR>.getSeconds()) ; <BR>//document.getElementById("ht").innerHTML=dt; <BR>return dt; <BR>} <BR>setInterval("document.getElementById('ht').innerHTML=time()" , 1000); <BR></script> <br><br><br> <br><br> <br><br><span id="ht"></span> <br> <br> <br> </div>