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

Status bar scrolling message 1

Status
Not open for further replies.

sawsie

IS-IT--Management
Jan 6, 2003
21
0
0
CA
I would like to creat a scrolling message on my webpage status bar. How can I do that in dreamweaver?

Thank you
Sawsie

 
I dont know about dreamweaver, but I can tell you how to do it with HTML if you like.
Just let me know

kwunder
 
Thank you, I would like to know how to creat the scrolling message in HTML.

Sawsie
 
OK Sawsie,

Here is the code you'll need. Just substitute the text thats in BOLD for the text you want in your message.

<SCRIPT language=JavaScript>
<!-- Start of scroller script
var scrollCounter = 0;
var scrollText = &quot;YOUR TEXT HERE&quot;;
var scrollDelay = 50;
var i = 0;

while (i ++ < 140)
scrollText = &quot; &quot; + scrollText;

function Scroller()
{
window.status = scrollText.substring(scrollCounter++,
scrollText.length);
if (scrollCounter == scrollText.length)
scrollCounter = 0;
setTimeout(&quot;Scroller()&quot;, scrollDelay);
}

Scroller();
// End of scroller script -->
</SCRIPT>

Give that a try
kwunder
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top