뽀라닷컴
Loading...




웹디자인,포토샵,그누보드,제로보드,동영상제작 관련 메모 >>


전체(437)인터넷,컴퓨터 (94) | 웹디자인tip (182) | CG,그래픽tip (70) | BBS_Tip (74) | 영상tip (17) |
상태바에 시계 넣기 2008-04-27 13:43:18
홈페이지홈페이지

예제를 보시려면 아래주소를 눌러요.

http://rainandtears.net/tag/time.htm

해드와 해드 사이에 아래소스를 넣고..
<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 = "현재 시간은 :&nbsp;&nbsp; ;" + theTime
timerID = setTimeout("updateTime()",1000)
}
//-->
</script></head>

바디안에 아래와 같이 해보세요..
<body onload="updateTime();">




    



목록보기 삭제하기