 |
|
|  |
ȨÆäÀÌÁö ¸Ó¹®½Ã°£ ¾Ë·ÁÁÖ±â.. 2 |
|
|
 ȨÆäÀÌÁö |
20³â Àü |
[head]ºÎºÐ¿¡ µé¾î°¥ ¼Ò½º]
------------------------------------------------------------
<script language="JavaScript">
function anzaraTimer(){
var time = new Date();
var hours = time.getHours();
var mins = time.getMinutes();
var secs = time.getSeconds();
enterTime = hours*3600 + mins*60 + secs;
Timer();
}
function Timer() {
var time = new Date();
var hours = time.getHours();
var mins = time.getMinutes();
var secs = time.getSeconds();
curTime = hours*3600 + mins*60 + secs;
compTime();
}
function compTime() {
count = curTime - enterTime;
hour = parseInt(count/3600);
min = parseInt((count%3600)/60);
min = ((min < 10) ? "0" : "") + min;
sec = (count%3600) % 60;
sec = ((sec < 10) ? "0" : "") + sec;
document.timer.counter.value = hour + ":" + min + ":" + sec;
window.setTimeout("Timer()",1000);
}
</script>
[bodyºÎºÐ¿¡ µé¾î°¥ ¼Ò½º]
------------------------------------------------------------
<body onload="anzaraTimer();">
<FORM name="timer" method="get">
¸Ó¹®½Ã°£
<INPUT type="text" style="border: black 1 solid; height: 19; width:50;" name="counter">
</FORM>
</body>
</html> |
|
̵̧ : 350 |
̵̧
¸ñ·Ï
|
|
|  |
|