À©µµ¿ì ŸÀÌ¸Ó ¿¹Á¦

¼Ò½ºÀÛ¿ë
<span id=Clock>&nbsp;</span>
<SCRIPT>var timer='';
function clock(){Clock.innerHTML=new Date().toLocaleString();}
</SCRIPT>
 
<INPUT type=button value="ŸÀÌ¸Ó ½ÃÀÛ"
  onClick="timer=window.setInterval('clock()',50);"><BR>
<INPUT type=button value="ŸÀÌ¸Ó ÁßÁö"
  onClick="if (timer) window.clearInterval(timer)">

<span id=Clock1>&nbsp;</span>
<SCRIPT>var timer1='';
function clock1(){
  Clock1.innerHTML=new Date().toLocaleString();
  timer1=setTimeout('clock1()',50)
}</SCRIPT>
 
<INPUT type=button value="ŸÀÌ¸Ó ½ÃÀÛ" onClick="clock1()"><BR>
<INPUT type=button value="ŸÀÌ¸Ó ÁßÁö"
  onClick="if (timer1) window.clearTimeout(timer1)">