中文(繁体)
<!--要完成此效果把如下程式碼加入<head>區域中--> <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 = "歡迎來到 JavaScript Fairyland"; if (wh_StatusType == "右") { while (wh_StatusText.length < 80) wh_StatusText = " " + wh_StatusText; } } 狀態 = wh_StatusText; setTimeout("wh_showStatus()",wh_StatusSpeed); } wh_StatusText = "歡迎光臨建站學院"; wh_StatusSpeed = 1000; wh_StatusType = "左"; if (wh_StatusType == "右") { while (wh_StatusText.length < 80) wh_StatusText = " " + wh_StatusText; setTimeout("wh_showStatus()",wh_StatusSpeed); </腳本>