<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 전환//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; 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() : 날짜 <BR>.getHours()) <BR> ":" <BR> ((날짜 .getMinutes () <= 9 ? '0' date.getMinutes() : 날짜 <BR>.getMinutes())) <BR> ":" <BR> (date.getSeconds() <= 9 ? '0 ' date .getSeconds() : 날짜 <BR>.getSeconds()); <BR>//document.getElementById("ht").innerHTML=dt; <BR>return dt; "document .getElementById('ht').innerHTML=time()", 1000) <BR></script> <br><br><br></head> 본문> <br><br><span id="ht"></span> <br></body> <br><br> </div>