Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I show scrolling text in my status bar? 1

Status
Not open for further replies.

shaggy

Technical User
Apr 19, 2000
17
GB
Does anybody out there know the javascript that will allow me to show scrolling text in the status bar of my website?<br><br>Thanks guys
 
Go here and steal mine: <A HREF=" TARGET="_new"> fact, here's the code you need:<br><br>&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;<br>var scrollCounter = 0;<br>var scrollText&nbsp;&nbsp;&nbsp;&nbsp;= &quot;WARNING!! You are about to enter the InfoSource of the Order of the Templars Sensible, the arising force for the aeon of CONFUSION. The O.'.T.'.S.'. are simply not certain of anything and wish you to reach the same exalted state.&quot;;<br>var scrollDelay&nbsp;&nbsp;&nbsp;= 60;<br>var i = 0;<br><br>while (i ++ &lt; 140)<br>scrollText = &quot; &quot; + scrollText;<br><br>function Scroller()<br>{<br>window.status = scrollText.substring(scrollCounter++,<br>scrollText.length);<br>if (scrollCounter == scrollText.length)<br>scrollCounter = 0;<br>setTimeout(&quot;Scroller()&quot;, scrollDelay);<br>}<br>Scroller();<br>&lt;/script&gt;
 
ahdkaw - good stuff my friend - thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top