第一、登录到网站管理后台,单击“网站参数设置”,然后点“底部区”。
第二、在底部区编辑器下方有个"代码"区,把以下这段代码放在此代码区的最后面即可。
<SCRIPT LANGUAGE="JavaScript">
<!--
function scroll(seed)
{
var m1 = "欢迎光临--"
var m2 = "!"
var msg=m1+m2;
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-100);
seed--;
var cmd="scroll(" + seed + ")";
window.status=out;
timerTwo=window.setTimeout(cmd,100);
}
else {
window.status=" ";
timerTwo=window.setTimeout("scroll(100)",7);
}
}
}
rONE=window.setTimeout('scroll(100)',50);
//-->
</SCRIPT>