Yet another banner script. I was listening to Dishwalla on the computer when the thought of beaches rang through my head. At the same time, I was looking at a typewriter script and this idea popped up. I think it turned out neatly. It's a new look to the monotonous scrolling banners that we are now used to. Not hard to configure, and it would only take a minute to move a message you had on an old scrolling banner onto this one.
The source..


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

function initArray() {
this.length = initArray.arguments.length;
  for (var i = 0; i < this.length; i++) {
  this[i] = initArray.arguments[i];
  }
}

var text  = new initArray(
"This is the wave banner",
"It's a really neat script that reminded me of the beach",
"feel free to copy it on your page");

var speed = 50;
var speed2 = 1000;
var whereat = 0;
var whichone = 0;

function waveb() {
 var befor = text[whichone].substring(0,whereat);
 var wave = text[whichone].substring(whereat,whereat+1).toUpperCase();

 window.status = befor + wave;

 if (whereat == text[whichone].length) {
  whereat = 0;
  ++whichone;
  if (whichone == text.length) whichone = 0;
  setTimeout("waveb()",speed2);
 }

 else {
  whereat++;
  setTimeout("waveb()",speed);
 }
}

waveb();
//-->
</script>

Color coding..


The messages in the script are configured by the text in blue. To add new lines, just do a page enter and put in "your message", . Notice the last message does not end in a comma, but rather like so: "your message");
The "speed" variable is the rate that the script adds new characters to the statusbar. The "speed2" varable is the wait period before a new line is started after all the message has been displayed. Both values are in milliseconds.

Nic's JavaScript Page