<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><!DOCTYPE html PUBLIC "-//W3C/ /DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <br><html xmlns="http://www.w3 .org/ 1999/xhtml"> <br><head> <br><meta http-equiv="Content-Type" content="text/html" /> <br> <title> ;無題ドキュメント</title> <br><br><script type="text/javascript"> <br>//ページ上の動的時間<br>function time() { <br>var dt; <br>var date = new Date(); <br>dt = date.getFull Year() <br> "/" <br> date.getMonth() <br> "/" <br> date.get( ) <br> " " <br> (date.getHours() .getHours()) <br> ":" <br> ((日付.getMinutes () <= 9 ? '0' date.getMinutes() : date <BR>.getMinutes())) <BR> ":" <BR> (date.getSeconds() <= 9 ? '0 ' 日付 .getSeconds() : 日付 <BR>.getSeconds()); <BR>//document.getElementById("ht").innerHTML=dt; <BR>return <BR>} <BR>setInterval( "document .getElementById('ht').innerHTML=time()", 1000); <BR><br><br><BR><br><本文> <br><br><span id="ht"></span> <br></html></div>