This example shows how to add a scrolling message to your status bar
Source for statusbar.html
<HTML>
<HEAD>

<SCRIPT LANGUAGE="JavaScript" ONLOAD="startBanner();">
<!--
var speed = 100;  //how fast it goes
var pause1 = 1000;  //pause before organized
var pause2 = 500;  //pause before it starts over.

var timerID = null;
var bannerRunning = false;
var currentMessage = 0;
var offset = 0;
var ar = new Array();

ar[0] = "Welcome to Wyatt's Haven of Bliss.";
ar[1] = "Please sign the guestbook!";
ar[2] = "whoutz@oakland.edu is my email";
ar[3] = "Go ahead, and tell me what you think!";


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 {
		setTimeout("org()", pause1);
	}    
	
}

function org() {
	currentMessage += 1;
	if (currentMessage > 3) currentMessage = 0;
	offset = 0;
	setTimeout("showBanner()", pause2);    
	}

// -->
</SCRIPT>


</HEAD>
<BODY onLoad="startBanner()">

</BODY>
</HTML>
Back