|
»óÅÂÇ¥½ÃÁÙ¿¡ ÇöÀç½Ã°£ / ¸Ó¹°°í ÀÖ´Â
½Ã°£ Ç¥½ÃÇϱâ
¢º ÇöÀç½Ã°£À» Ç¥½ÃÇϱâ
<html>
<head>
<script language="JavaScript">
<!--
var flasher = false
function updateTime() {
var now = new Date()
var theHour = now.getHours()
var theMin = now.getMinutes()
var theSec = now.getSeconds()
var theTime = "" + ((theHour > 12) ? theHour
- 12 : theHour)
theTime += ((theMin < 10) ? ":0" : ":")
+ theMin
theTime += ((theSec < 10) ? ":0" : ":")
+ theSec
theTime += (theHour >= 12) ? " PM" : "
AM"
theTime += ((flasher) ? " " : " Áñ°Å¿î ÇÏ·çµÇ¼¼¿ä.")
flasher = !flasher
window.status = "Áö±ÝÀº : " + theTime
timerID = setTimeout("updateTime()",1000)
}
//-->
</script>
</head>
<body onload="updateTime()">
</body>
</html> |
¢º ¸Ó¹°°í
ÀÖ´Â ½Ã°£ Ç¥½ÃÇϱâ
<html>
<head>
<script language="JavaScript">
var min_inc = 0, sec_inc = -1;
function browsing_time(){
if (sec_inc == 59) min_inc++;
sec_inc = (sec_inc + 1) % 60;
if (min_inc == 1)
var min_no = min_inc + ' minute';
else var min_no = min_inc + ' minutes';
if (sec_inc >= 10)
var sec_no = sec_inc;
else var sec_no = '0' + sec_inc;
var sec_txt = ' seconds.';
if (sec_inc == 1)
sec_txt = ' second.';
var elapsed = '¸Ó¹«¸¥ ½Ã°£ ::: ' + min_no + ' '+ sec_no + sec_txt;
defaultStatus = elapsed;
setTimeout("browsing_time()", 1000);
}
</script> </head> <body>
</body> </html> |
|
|
|
|