<script type="text/javascript">
<!-- var nextcol=0 var nextchar=0 var nextword="" var speedout=10 // speed the next character is show var speedin=1 // speed the next character is deleted var pauseout=1500 // how long the finished message is shown var pausein=1500 // how long before next message is started text=new Array() text[text.length]="Scroll through a series of messages" text[text.length]="Contained in an Array within the script" text[text.length]="Additional lines can be added" text[text.length]="Or just delete those that are not required" text[text.length]="If colour change is not required" text[text.length]="Place // before the line" text[text.length]="myDisplay.style.color=col[nextcol]" col= new Array() col[col.length]="#00ff00" col[col.length]="#aaaa00" col[col.length]="#ff0000" col[col.length]="#0000ff" txt=0 function type_in(){ myDisplay=document.getElementById("display") if(nextcol==col.length){ nextcol=0;} myDisplay.style.color=col[nextcol] myDisplay.innerHTML=myDisplay.innerHTML+text[txt].charAt(nextchar) nextchar++ timerT=setTimeout("type_in()",speedout) if(nextchar==text[txt].length){ clearTimeout(timerT) nextchar=0 setTimeout("wipe_out()",pauseout) } } function wipe_out(){ myDisplay.innerHTML=myDisplay.innerHTML.substring(0,myDisplay.innerHTML.length-1) timerT=setTimeout("wipe_out()",speedin) if(myDisplay.innerHTML.length==0){ clearTimeout(timerT) txt++ nextcol++ setTimeout("type_in()",pausein) } if(txt==text.length){ txt=0 } } setTimeout("type_in()",2000) // --> </script> <span id="display" style="position: absolute;top:200; left:100; font-size:20;color:black"></span>