<div class="codetitle"> <span><a style="CURSOR: pointer" data="64419" class="copybut" id="copybut64419" onclick="doCopy('code64419')"><u>コードをコピー</u></a></span> コードは次のとおりです:</div> <div class="codebody" id="code64419"> <br><!DOCTYPE HTML PUBLIC "-//W3C/ /DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <br><html> <br><head> <br><meta http-equiv ="Content-Type" content="text/html; charset=utf-8" /> <br><script type="text/javascript"> >var dateTime =new Date(); <br>var hh=dateTime.getHours(); <br>if(hhif (mmvar ss=dateTime.getSeconds(); <br>if(ss<br>var MM=dateTime.getMonth() 1; //このメソッドは 1 月に 0 を返すので、1 を追加します。<br>var dd=dateTime.getDate(); = dateTime.getDay(); <br>var days=[ "日", "一", "二", "三", "四", "五", "六",] <br>document.getElementById( " 日付").value=yy "年" MM "月" dd "日" "週" days[week]; <br>document.getElementById("time").value=hh ":" mm ":" ss ; <br>setTimeout(bodyLoad,1000) <br></script> <br><bodyLoad()> ; input type="text" id="date" style="border:0 none;" /><input type="text" id="time" style="border:0 none;"></body> <br></html></div>