+++ ȨÁ¦ÀÛ ¹ÙÀ̺í +++
ȨÁ¦ÀÛ ¹ÙÀ̺í ÀÌ »çÀÌÆ®´Â ÀÌ¿µÂù´ÔÀÇ »çÀÌÆ®¸¦ º¹¿øÇÑ °ÍÀÔ´Ï´Ù.
Untitled Document
Html
Dhtml
Css
Php
Asp
Cgi
Java Script
Java Applet
Multimedia
Win Tip
[Time] ¸Ó¹«¸£´Â ½Ã°£À» Ç¥½ÃÇÕ´Ï´Ù.
¹æ¹®°´ÀÌ ¹æ¹®ÇÑ ½Ã°£À» ±âÁØÀ¸·Î ¾ó¸¶³ª ¸Ó¹°°í ÀÖ´ÂÁö¸¦ ½Ã°£À¸·Î ³ªÅ¸³»´Â ½ºÅ©¸³Æ®ÀÔ´Ï´Ù.



Script Example

<HTML>
<HEAD>

<SCRIPT>
startday = new Date();
clockStart = startday.getTime();
function initStopwatch() {
var myTime = new Date();        
var timeNow = myTime.getTime();          
var timeDiff = timeNow - clockStart;        
this.diffSecs = timeDiff/1000;        
return(this.diffSecs); }
function getSecs() {        
var mySecs = initStopwatch();        
var mySecs1 = ""+mySecs;        
mySecs1= mySecs1.substring(0,mySecs1.indexOf(".")) + " secs.";        
document.forms[0].timespent.value = mySecs1        
window.setTimeout('getSecs()',1000); }
</SCRIPT>

</HEAD>

<BODY onload="window.setTimeout('getSecs()',1)">

<CENTER>
<FORM><FONT size=2>¸Ó¹«¸¥ ½Ã°£:</FONT>
<INPUT name=timespent size=9></FORM>
</CENTER>

</BODY>
</HTML>


¼³¸í
½Ã°£ÀÌ ½Ç½Ã°£À¸·Î º¯ÇÏ´Â °ÍÀ» ¾Ë ¼ö ÀÖ½À´Ï´Ù. form ű׸¦ ÀÌ¿ëÇؼ­ ±× ¾È¿¡ µé¾î°¥ ³»¿ëÀ» ½ºÅ©¸³Æ®¸¦ ÀÌ¿ëÇؼ­ »Ñ·ÁÁÖ´Â ¹æ½ÄÀÔ´Ï´Ù.
Update : 2000/12/19 [µ¹¾Æ°¡±â]