<script language="JavaScript"> <!-- // // function statusMessageObject(p,d){ this.msg = MESSAGE this.out = " " this.pos = POSITION this.delay = DELAY this.i = 0 this.reset = clearMessage} function clearMessage(){ this.pos = POSITION} var POSITION = 100 var DELAY = 50 var MESSAGE = "This is the Advanced Form Banner. " +"It is part of my 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." var scroll = new statusMessageObject() function scroller(){ for (scroll.i = 0; scroll.i < scroll.pos; scroll.i++) { scroll.out += " " } if (scroll.pos >= 0) scroll.out += scroll.msg else scroll.out = scroll.msg.substring(-scroll.pos,scroll.msg.length) document.myform.mytext.value = scroll.out scroll.out = " " scroll.pos-- if (scroll.pos < -(scroll.msg.length)) { scroll.reset() } setTimeout ('scroller()',scroll.delay) } // --> </script> <body onload="scroller()"> <form name="myform"> <center> <input type="text" name="mytext" size="50"> </center> </form>