<SCRIPT><SCRIPT LANGUAGE="javascript"> function wh_showStatus(){ if (wh_StatusType == "left") { wh_StatusText = " " + wh_StatusText; } else if (wh_StatusType == "right") { wh_StatusText = wh_StatusText.substring(1,wh_StatusText.length); } if (wh_StatusText == "" || wh_StatusText.length > 80) { wh_StatusText = "苏洋的博客"; if (wh_StatusType == "right") { while (wh_StatusText.length < 80) wh_StatusText = " " + wh_StatusText; } } status = wh_StatusText; setTimeout("wh_showStatus()",wh_StatusSpeed); } wh_StatusText = "欢迎光临本站!希望大家玩的开心:)"; wh_StatusSpeed = 1000; wh_StatusType = "left"; if (wh_StatusType == "right") { while (wh_StatusText.length < 80) wh_StatusText = " " + wh_StatusText; } setTimeout("wh_showStatus()",wh_StatusSpeed); </SCRIPT> </Script> |
使用说明:
首先新建一个txt文本,也就是记事本,然后把上面这段代码复制到该文本中,红色部分换成你自己想显示的文字,然后保存此文档(注意:文件属性必须保存为txt,不能改;保存时文件名必须为英文或者数字,否则不能用),接着把它上传到一个网络硬盘,上传之后获得这个文本在网上的地址,复制下来,代到下面的这段代码中,然后只需把下面这段代码运用到各种博客,或者你的网站网页文件种就可以了: