<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 bgcolor="#FFFFFF" text="#000000" onload="updateTime();" >
<table width="450" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<p align="center"> </p>
<p align="center">상태바 - 이번엔 한글시계에...BLINK 효과까지 <br>
<head> 와 </head> 사이에 넣어 주세요. </p>
<p align="center"><img src="script/imge/3fc.jpg" width="346" height="263" border="0"> </p></td>
</tr>
</table>
</body>
</html>
'Javascript' 카테고리의 다른 글
상태바 꾸미기 (0) | 2016.06.01 |
---|---|
상태바 꾸미기 5 타이핑 효과 (0) | 2016.06.01 |
상태바에 머문시간 표시 (0) | 2016.06.01 |
상태바 꾸미기 2 한글자씩 옵니다 (0) | 2016.06.01 |
클릭하면 사라지는 공지창 (0) | 2016.06.01 |