中文(繁体)
<!--要完成此效果把如下程式碼加入<head>區域中--> <script> <!-- function scrollit_r2l(seed) { var m1 = "歡迎建站學院,請多提意見。謝謝!" ; var m2 = "" ; var msg=m1+m2; var out = " "; var c = 1; var speed = 120; if (seed > 100) { seed-=2; var cmd="scrollit_r2l(" + seed + ")"; timerTwo=window.setTimeout(cmd,speed);} else if (seed <= 100 && seed > 0) { for (c=0 ; c < seed ; c++) { out+=" ";} out+=msg; seed-=2; var cmd="scrollit_r2l(" + seed + ")"; window.status=out; timerTwo=window.setTimeout(cmd,speed); } else if (seed <= 0) { if (-seed < msg.length) { out+=msg.substring(-seed,msg.length); seed-=2; var cmd="scrollit_r2l(" + seed + ")"; window.status=out; timerTwo =window.setTimeout(cmd,speed);} else { window.status=" "; timerTwo=window.setTimeout("scrollit_r2l(100)",speed); } } } scrollit_r2l(100); // --> < /script>