一、状态栏 <!-- ##BEGIN SCROLLING --> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- // Scrolling status Bar text Script // Being of Scrolling text in the Status bar var speed = 50 //decrease value to increase speed (must be positive) var pause = 2500 //increase value to increase pause var timerID = null var bannerRunning = false var ar = new Array() ar[0] = "11" ar[1] = "22" ar[2] = "33" ar[3] = "44" ar[4] = "55" var currentMessage = 0 var offset = 0 function stopBanner() { if (bannerRunning) clearTimeout(timerID) bannerRunning = false } function startBanner() { stopBanner() showBanner() } function showBanner() { var text = ar[currentMessage] if (offset < text.length) { if (text.charAt(offset) == " ") offset++ var partialMessage = text.substring(0, offset + 1) window.status = partialMessage offset++ timerID = setTimeout("showBanner()", speed) bannerRunning = true } else { offset = 0 currentMessage++ if (currentMessage == ar.length) currentMessage = 0 timerID = setTimeout("showBanner()", pause) bannerRunning = true } } // --> </SCRIPT> <!-- ##END SCROLLING --> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- //this is to start the Scrolling Status Bar startBanner(); // --> </SCRIPT>