[JS11] 状态栏滚动
2020-12-13 03:34
标签:style blog class code java c [JS11] 状态栏滚动,搜素材,soscw.com [JS11] 状态栏滚动 标签:style blog class code java c 原文地址:http://www.cnblogs.com/zjutlitao/p/3726827.html 1 html>
2 head>
3 meta http-equiv="Content-Type" content="text/html; charset=gb2312">
4 title>请看状态栏的变化title>
5 meta name="GENERATOR" content="Microsoft FrontPage 3.0">
6 script Language="JavaScript">
7 var msg = "欢迎你,我的朋友,让我们在 JavaScript 的世界自由翱翔吧 " ;
8 var interval = 100
9 var spacelen = 120;
10 var space10=" ";
11 var seq=0;
12 function scrollstr()
13 {
14 len = msg.length;
15 window.status = msg.substring(0, seq+1);
16 seq++;
17 if ( seq >= len )
18 {
19 seq = 0;
20 window.status = ‘‘;
21 window.setTimeout("scrollstr();", interval );
22 }
23 else
24 window.setTimeout("scrollstr();", interval );
25 }
26 scrollstr();
27 script>
28 head>
29 body>
30 p align="center">big>strong>font color="#0000FF" face="楷体_GB2312">big>big>请看状态栏的变化
31 big>big>font>strong>big>p>
32 body>
33 html>