今天告诉大家状态栏跳动着流动的文字的方法,只要把如下代码加进去模板的body就行了。因网页上运行了太多特效,故在打开文章后不再放入特效显示。可以去http://rain.tyblog.com看效果
<SCRIPT language=JavaScript>
<!--
function scroll(seed)
{var m1 = " 莫 许 杯 深 琥 珀 浓, 未 成 沈 醉 意 先 融。"
var m2 = " 疏 钟 己 应 晚 来 风, 瑞 脑 香 消 魂 梦 断。"
var m3 = " 辟 寒 金 小 髻 鬟 松, 醒 时 空 对 烛 花 红。"
var msg=m1+" "+m2+" "+m3;
var out = " ";var c = 1;if (seed > 100) {seed--;var cmd="scroll(" + seed + ")";
timerTwo=window.setTimeout(cmd,100);}
else if (seed <= 100 && seed > 0) {for (c=0 ; c < seed ; c++) {out+=" ";}
out+=msg;seed--;var cmd="scroll(" + seed + ")";
window.status=out;timerTwo=window.setTimeout(cmd,100);} else if (seed <= 0)
{if (-seed < msg.length) {out+=msg.substring(-seed,msg.length);
seed--;var cmd="scroll(" + seed + ")";window.status=out;
timerTwo=window.setTimeout(cmd,100);}else {window.status=" ";
timerTwo=window.setTimeout("scroll(100)",7);}}}
timerONE=window.setTimeout('scroll(100)',50);
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);}
//-->
</SCRIPT>