 |
|
|  |
|
 홈페이지 |
21년 전 |
<head>와</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 = "webdesign by senamom 현재시각 : " + theTime
timerID = setTimeout("updateTime()",1000)
}
//-->
</script>
다음엔 body 안에 넣어주면 됩니다.
<body onload="updateTime();"> |
|
추천 : 782 |
추천
목록
|
|
|  |
|