Marquee in the Status Bar

Hello to all the bloggers and visitors..
heres the code to create a scrolling text in the status bar..but i guess works only in IE

<SCRIPT language="javascript">
i=pos=1
txt=msg="Hello everyone..."
len=msg.length
function marquee()
{
if(pos<len)
{
status=msg.substring(len-i++)
else status=msg
if(++pos==160) //try changing the value to 120 or increase it to any you wish
{
msg=txt
pos=0
i=1
}

msg=" "+msg
window.setTimeout("marquee()",100)
}
//here the value 100 is the time in milliseconds..try by decreasing this value to 20
//or even to 5 or 2
marquee()
</script>

And you know what ..you can use this concept to create a real marquee without using the <MARQUEE> tag although it isnt so useful..and u can try that i guess...if not then im there with you...thanks
hav a gr8 tym

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

thank you for great

thank you for great material!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is to prevent automated spam submissions.