source:
<SCRIPT LANGUAGE="JavaScript"> <!-- // please keep these lines on when you copy the source // made by: Nicolas - http://www.javascript-page.com // global variables var i = 0 // text index var j = 0 // initial space counter var iNumberOfInitialSpaces = 140 var delay = 70 var text = " This is the Scrolling Banner. " +"It is part of Nicola's collection of Javascript. " +"If you want to make more lines to put your message on, copy this line, " +"and be sure to not continue on with the script by pressing enter." // to add several spaces at the beginning of the string while (j++ < iNumberOfInitialSpaces ) { text = " " + text; } // ---------- function to scroll text usign the window status area function scroller() { // remove one letter window.status = text.substring(i++, text.length); if (i == text.length) { i = 0; } // after showing the string, wait a little bit setTimeout("scroller()", delay); } scroller(); </SCRIPT> |