#fcleft">



This is basically the same thing as the Typewriter, except that is erases itself after it displays all of the message. With such an array of choices, I wouldn't chose this one for your page unless you take a liking to it. Color coding is included in the below cut-and-paste source of this script so you know what to change.
The source..


<script language="JavaScript">

<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var current = 0
var x = 0
var speed = 100
var back = 20
var speed2 = 2000
var back2 = 1500

function initArray(n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '
  }
}

typ = new initArray(4)
typ[0]="This is Message 1"
typ[1]="Now it is Message 2"
typ[2]="No, do not say I have to do 3 messages"
typ[3]="Yea, this message, 4, is the last message (and it's long)"

function typewrite() {
var m = typ[current]

window.status = m.substring(0, x++)

if (x == m.length + 1) {
setTimeout("erase()", back2)
}

else {
setTimeout("typewrite()", speed)
}
}

function erase() {
var m = typ[current]

window.status = m.substring(0, x--)

if (x < 0) {
current++
setTimeout("typewrite()", speed2)

if (current > typ.length - 1) {
current = 0
}
}

else {
setTimeout("erase()", back)
}
}
typewrite()
//-->

</script>


Color coding..


For var "speed": The number "100" represents the wait in milliseconds between the "typing" of each character in the message list. Anywhere between "20" and "200" would be fine for the average webpage.
For var "back": The number "20" represents the wait in milliseconds between the "erasing" of each character in the message list. Anywhere between "5" and "50" would be fine for the average webpage.

For var "speed2": The number "2000" represents the number of milliseconds between the changing of each message after it is completely erased (2 seconds, here). Anywhere between "1500" and "5000" would be fine for the average webpage.
For var "back2": The number "1500" represents the number of milliseconds until the displayed message starts erasing. Anywhere between "1000" and "4000" would be fine for the average webpage.

This is the number of different messages you have. The different messages are stated by typ[the number in line -1]="The message" so you can add or subtract the number of messages in the list by knowing this.
You can change this script to display on a form instead of the statusbar by making a form input and changing "window.status" to "document.form_name.input_name.value".