상태바에 원하는 메세지를 보여줍니다.데모를 눌러 확인하세요.
| Script Example |
<html> <head><title>홈제작바이블</title>
<script language="JavaScript">
<!--
msg = "여기를 보세요";
timeID = 10;
stcnt = 16;
wmsg = new Array(33);
wmsg[0]=msg;
blnk
= "
";
for
(i=1; i<32; i++)
{
b
= blnk.substring(0,i);
wmsg[i]="";
for
(j=0; j<msg.length; j++) wmsg[i]=wmsg[i]+msg.charAt(j)+b;
}
function wiper()
{
if
(stcnt > -1) str = wmsg[stcnt]; else str =
wmsg[0];
if
(stcnt-- < -40) stcnt=31;
status
= str;
clearTimeout(timeID);
timeID
= setTimeout("wiper()",100);
}
wiper()
// -->
</script> </head> <body>
상태바를 보세요 </body> </html> |
|
|
| 설명 |
| 위의 소스중 녹색부분에 해당하는 스크립트를 당신의 홈페이지 head 태그
사이에 삽입하세요. 파란색 부분에서 원하는 메세지로 수정하시면 됩니다. |
|
|
|
|