Categories:

Home / Free JavaScripts / Scrollers / Here

Cut & Paste Ticker Tape
Credit: Dave Methvin, Windows Magazine

Description: This ticker tape will scroll any lines of text you enter into it.

Example:

Directions: Simply cut and paste the script into the <body> section of your webpage. You can change the size of the tape by changing 25, you can change the speed of the tape by adding/subtracting 100.

<CENTER>
<FORM NAME="marquee1">
<INPUT NAME="text" SIZE=25
VALUE=" Welcome to JK's ultimate JavaScript tutorial! Have fun!"
>
</FORM>
</CENTER>

<SCRIPT>
<!--
/*Text box marquee by Dave Methvin,
Windows Magazine
May be used/modified if credit line is
retained*/
ScrollSpeed = 100
ScrollChars = 1
function ScrollMarquee() {
window.setTimeout('ScrollMarquee()',ScrollSpeed);

var msg = document.marquee1.text.value;
document.marquee1.text.value =
msg.substring(ScrollChars) +
msg.substring(0,ScrollChars);
}
ScrollMarquee()
//-->
</SCRIPT>


JavaScript Tools:
Site Info


CopyRight (c) 2018 JavaScript Kit. NO PART may be reproduced without author's permission. Contact Info