62,046
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>草根代码lktl-且听风呤|mk178.CN|---可控制的状态栏闪烁文字</title>
<script language="JavaScript">
var yourwords = "这里是将要在状态栏中显示的文字 ";
var speed = 150;
var control = 1;
function flash()
{ if (control==1)
{ window.status=yourwords; control=0 ; }
else { window.status=""; control=1; }
setTimeout("flash();",speed);
}
function change()
{
if (control==1)
{ window.status="状态栏中闪烁的文字"; control=0 ; }
else { window.status="欢迎学习草根代码网页特效"; control=1; }
setTimeout("change();",200);
}
</script>
</head>
<body link="#FFFF00">
<p align="center"><b><font size="7" face="宋体">状态栏闪烁文字</font></b><font COLOR="#000000"> </p>
<div align="center">
<center>
<table border="0" width="100%">
<tr>
<td width="50%">
<p align="center"> </td>
</font>
<td width="50%"> 状态栏闪烁文字类似常设置于页面上闪烁文字,它用JavaScript编写,实现在状态栏中显示闪烁消息,以引人注意,在网页中经常见到,单击超链接<font color="#FFFFFF"><a href="javascript:change()" _fcksavedurl="javascript:change()"><b><font color="#0000FF">轮流</font><span
style="mso-bidi-font-size: 10.0pt; font-family: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman; mso-bidi-font-family: Times New Roman; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><font color="#0000FF">闪烁文字</font></span></b></a></font>可以改变状态栏文字内容。</td>
</tr>
<font COLOR="#000000">
<tr>
<td width="50%"></td>
<td width="50%"></td>
</tr>
</table>
</center>
</div>
</font>
<p align="center"><b>单击显示<font color="#00FF00"><a href="javascript:flash()" _fcksavedurl="javascript:flash()"><span
style="mso-bidi-font-size: 10.0pt; font-family: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman; mso-bidi-font-family: Times New Roman; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><font color="#0000FF">状态栏闪烁文字</font></span></a></font>的内容</b></p>
<p align="center"><b>单击显示<font color="#FFFF00"><a href="javascript:change()" _fcksavedurl="javascript:change()"><font color="#0000FF">轮流</font><span
style="mso-bidi-font-size: 10.0pt; font-family: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman; mso-bidi-font-family: Times New Roman; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><font color="#0000FF">闪烁文字</font></span></a></font></b></p>
</body>
</html>