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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrolling Text... 1

Status
Not open for further replies.

NoIDea

MIS
Jan 19, 2001
4
0
0
AU
How do I make scrolling text in the status bar..
 
This is what you want:



<script language=&quot;JavaScript&quot;>
<!--
function scrollit_r21(seed)
{
var msg=&quot; Just replace this message with what you want to say....You can add as much as you want but try to keep it short so your visitors do not get bored and impatient like you are now....LOL&quot;;
var out = &quot; &quot;;
var c = 1;
if (seed > 100) {
seed--;
var cmd=&quot;scrollit_r21(&quot; + seed + &quot;) &quot;;
timerTwo=window.setTimeout(cmd, 100) ;
}
else if (seed <= 100 &amp;&amp; seed > 0)
{
for (c=0 ; c < seed ; c++)
{
out+=&quot; &quot;;
}
out+=msg;
seed--;
var cmd=&quot;scrollit_r21(&quot; + seed + &quot;) &quot;;
window.status=out;
timerTwo=window.setTimeout(cmd, 100);
}
else if (seed <= 0)
{
if (-seed < msg.length)
{
out+=msg.substring(-seed,msg.length);
seed--;
var cmd=&quot;scrollit_r21(&quot; + seed + &quot;)&quot;;
window.status=out;
timerTwo=window.setTimeout(cmd, 100) ;
}
else {
window.status=&quot; &quot;;
timerTwo=window.setTimeout(&quot;scrollit_r21(100)&quot;,75);
}
}
}
-->
</SCRIPT>

<body onLoad=&quot;timerONE=window.setTimeout ('scrollit_r21(100) ' ,500) ;&quot;>
</body>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top