 |
|
|  |
|
 홈페이지 |
21년 전 |
아래소스를 <head>와 </head> 사이에 넣어줍니다.
<SCRIPT LANGUAGE="JavaScript">
<!--
stcnt = 0;
d=new Date();
h=d.getHours();
if (h >= 0 && h <= 4) { txet = "자정부터 4시까지 보일 메세지"; }
if (h >= 5 && h <=11) { txet = "5시에서 11시까지"; }
if (h >= 12 && h <=18) { txet = "정오에서 18시까지"; }
if (h >= 19 && h <=23) { txet = "19시에서 23시까지"; }
w=" ";
word = w + w + w + w + txet;
TID = 0;
if(navigator.appName=="Microsoft Internet Explorer")
{ A=1; }
else { A=2; }
function Timemsg()
{
window.status = word.substring(stcnt+=A,word.length+1);
if (stcnt>word.length) stcnt=0;
clearTimeout(TID);
TID = setTimeout("Timemsg()",100);
}
Timemsg();
//-->
</SCRIPT>
|
|
추천 : 550 |
추천
목록
|
|
|  |
|