68、文字回缩显示

68、文字回缩显示

脚本说明:

第一步:把如下代码加入<body>区域中:

<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>

 

 

第二步:把<body>中的内容改为:

<body bgcolor="#fef4d9" onLoad="scrollIn()">

Write a comment

Comments: 0