Javascripts > Misc Javascripts > Scrolling Billboard
Script Title: Scrolling Billboard
Description: This script displays multiple messages 1 at a time in the status bar. It will continue to rotate through all the messages in a loop.
Example: Available
Copy the following code into your <HEAD></HEAD> tags.<script language="JavaScript"> <!-- // Please feel free to use this script for your pages, // but please leave these lines attached when you copy the script. // Written by Russ Woodward; 2/12/2002. var stuff=new Array(); stuff[0]="This is an Example of the rotating message script!"; stuff[1]="It was Written by Russ Woodward"; stuff[2]="Feel Free to Use it... but please give him credit,"; stuff[3]="Where Credit is due."; // to add more messages, simply add stuff[?]="your messages here"; var speed=40 // Adjust this value for speed (lower the number, faster the scroll) var count=0 var sw=0 var n=-1 var q=stuff.length function Scroll() { var message=stuff[n]+" "; var done=message.length; window.status=message.substring(0,count) if (count==done) { sw=1 } else { if (count==0) { n=n+1 sw=0} } if ((count==0)&&(n==q)) { n=0} if (sw==0) { count=count+1 setTimeout("Scroll()",speed) } else { count=count-1 setTimeout("Scroll()",speed); } } //--> </script>
Copy the following code INTO your <BODY> tag.onload="Scroll()"
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email