2、酷的状态栏效果显示

2、酷的状态栏效果显示

<SCRIPT LANGUAGE="JavaScript">

 

<!-- Begin

 

var Message="欢迎光临网页特效精彩集锦!!";

 

var place=1;

 

function scrollIn() {

 

window.status=Message.substring(0, place);

 

if (place >= Message.length) {

 

place=1;

 

window.setTimeout("scrollOut()",300);

 

} else {

 

place++;

 

window.setTimeout("scrollIn()",50);

 

   }

 

}

 

function scrollOut() {

 

window.status=Message.substring(place, Message.length);

 

if (place >= Message.length) {

 

place=1;

 

window.setTimeout("scrollIn()", 100);

 

} else {

 

place++;

 

window.setTimeout("scrollOut()", 50);

 

   }

 

}

 

// End -->

 

</SCRIPT>

 

</head>

 

 

 

<body onLoad="scrollIn()">

Write a comment

Comments: 0