※ 狀態列時顯示 ※
|
<body onLoad="Flash2()" background="jpg/01_bkg1.jpg"> <script Language="JavaScript"> <!-- msg = "歡迎光臨動力資訊網"; timerID = 10; function Flash2() { ct = new Date(); h = "0"+ct.getHours(); m = "0"+ct.getMinutes(); s = "0"+ct.getSeconds(); h = h.substring(h.length-2,h.length+1); m = m.substring(m.length-2,m.length+1); s = s.substring(s.length-2,s.length+1); cl = "現在時刻【"+h+"時"+m+"分"+s+"秒】"; f = ct.getSeconds() & 1; f == 0 ? str = " " : str = msg; status = cl+str; clearTimeout(timerID); timerID = setTimeout("Flash2()",100); } // --> </script> |