Text scroll script


This html script will give your web page scorlling text an example of this is above. All you have to do to get the scrolling script is copy and paste the script below on to your web page


Copy the next line to the inside of the


tag Immediately following the word body:

onunload="clearTimeout(scrollid)"

Example
<body onunload="clearTimeout(scrollid)" bgcolor=000000>


This script goes where you wish the scroll box to appear:

<!--start Text Scroller Script-->

<!SCRIPT>
function scroll(msg,ctrlwidth){
msg="---------------------------------"+msg
Mymsg=msg
while(Mymsg.length<!ctrlwidth){Mymsg += msg}
document.write('<!FORM NAME="Scroll">')
document.write('<!CENTER><!INPUT NAME="scroll" VALUE=
"'+Mymsg+'" SIZE= '+ctrlwidth+'></CENTER>')
document.write('<!/FORM>')
var scrollid=null
rollmsg()
}
function rollmsg(){
MyMsg=document.Scroll.scroll.value
MyMsg=MyMsg.substring(1,MyMsg.length)+MyMsg.substring(0,1)
document.Scroll.scroll.value=MyMsg
scrollid=setTimeout("rollmsg()",300)
}
scrollid=setTimeout("rollmsg()",300)
<!/SCRIPT>
<!script language='JavaScript'>
scroll("YOUR MESSAGE GOES HERE",50)
<!/script>

<!--finish Text Scroller Script-->

The only change you need to make is to put your message where it says YOUR MESSAGE GOES HERE.

The speed of the scroll can be configured by changing the 300 in both places to a lower number for faster scroll or a higher number for a slower scroll.

The hyphens (---) at the top of part 2 of this script is where you put your spacer line between the end and beginning of the message. To extend this line, simply add more hyphens. To shorten it, erase some.

Leave all quotation and other punctuation marks in place. Be sure to put this script in the proper locations on your document.


List of Craig's html scripts.
mouseover images | break out of frames | auto page changer | email links | text mouseover |
digital clock | text scroll | sound waves | pop up mouseover | button pop up |
button mouseover | statas scroll |
Animated images.
cartoons | bars | people | animals | icons |
buttons | words | miscellous |
None animated images.
back grounds | sound clips | Downloads |
Home Page | South Park Page |