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
thank you for great
thank you for great material!
Post new comment