Back Forward

Java Script Marquee's


This displays a scrolling banner across the page, like this:

This goes in between the <Head> tags:

<SCRIPT LANGUAGE="JavaScript">

var ScrollString="Hi. This text can be changed to whatever you want. 
it will scroll from right to left. ";
var timer = 0;
function Scrollon() {
        document.box.boxtext.value = ScrollString;
        ScrollString=ScrollString.substring(1,ScrollString.length) 
                     + ScrollString.charAt(0);
        // decrease timeout value (50) to speed up, increase to slow down
        timer = setTimeout("Scrollon()",50) ;
}
</SCRIPT>

Then this, add it inside your body tag, like this.
<BODY onLoad = Scrollon()>
And finally, add this wherever you want the marquee to appear:
<FORM NAME = "box" onSubmit = "0">

<INPUT TYPE="text" NAME="boxtext" SIZE="45" VALUE="">

Mail me at tkeer@cvn.net.

1