This script has been deprecated and should not be used. No update is forthcoming.
Pause Wrap
The source:
var mIndex = 0;
var nIndex = 0;
var mString = new Array();
mString[0] = "This is the first text string to display.";
mString[1] = "This is the second string. Uncheck \"Pause\" to have the strings display right after the string before it finishes. ";
mString[2] = "Uncheck \"Wrap\" and the strings will be displayed by themselves.";
mString[3] = "Thats all there is to it. Enjoy!";
var pauseInterval;
var nInterval;
// constants
var WRAP = true;			//change to false to stop wrapping
var PAUSE = true;			// change to false to stop the pause
var PAUSE_INTERVAL=1000;		// millisecond value for pause between strings
var DISPLAY_INTERVAL = 50;		// millisecond value for rate of display on individual characters.

function displayText() {
	if(nIndex<=mString[mIndex].length) {
		document.getElementById("mContainer").innerHTML+=mString[mIndex].charAt(nIndex);
		nIndex++;
	} else {
		nIndex=0;
		if(PAUSE) {
			clearInterval(nInterval);
			pauseInterval = setTimeout("dummyFunction()",PAUSE_INTERVAL);
		} 
		if(WRAP)document.getElementById("mContainer").innerHTML+="<p>"
		mIndex == mString.length-1?mIndex=0:mIndex++;
	}

}

function dummyFunction() {
	clearInterval(pauseInterval);
	if(mIndex==0 || !WRAP)document.getElementById("mContainer").innerHTML = "";
	startInterval();
}

function startInterval() {
	nInterval = setInterval("displayText()",DISPLAY_INTERVAL);
}

Text Typer v1.0
last revision: 06.12.2003
steve@slayeroffice.com
http://www.slayeroffice.com