|
This is the script for the status bar scroller you see in the status bar below:
<script language="javascript"> var statmsg="This is a scrolling status bar message script you can use. "; pos=0; function scrollStatus() {window.status=statmsg.substring(pos, statmsg.length) + statmsg.substring(0, pos-1) if (pos < statmsg.length) {pos++} else {pos=0} setTimeout("scrollStatus()", 25)} scrollStatus(); </script>
Use any message you like in place of my message. Remember to add the period, or other punctuation mark, and spaces inside the message variable quotes so the repeating message will be spaced correctly. Here I used 20 spaces at the end of the message for spacing between the repeating message.
Increase or decrease the setTimeout millisecond value to vary the speed of the scrolling message. Decreasing the value speeds up the scroll. In the script above, the message shifts one-character to the left every 25 milliseconds.
In the above script; I called the function, with the function call operator "scrollStatus();" inside the script because I used it in a Pagebuilder Basic Editor webpage. If you use a another webpage editor or a PageBuilder Advanced Editor webpage, you can call the function in the body tag, using the "onLoad" event handler, like this: <body onLoad="scrollStatus()">; or just use the above script in the body of the webpage, preferably immediately following the body tag.
The MSN TV® status bar will show ellipsis for any word that cannot be completely displayed in the 35-character limit of our status bars.
For blinking status bar scripts, visit my PageBuilder Blinking Status Bars tutorial at:
http://community-2.webtv.net/jaxred/BlnkStat/
Have a nice day, folks!
JaxRed@webtv.net
|