العربية
<!-要完成此效果把如下代码加入到 <head> 区域中-> <script language = "javaScript"> وظيفة wh_showstatus () {if (wh_statustype == "left") {wh_statext = "" " + 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 == "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); </النص>