Status bar text script

M

Mickey

Hi,

I am jst writing to ask if anyone could help with this?
I have a simple script to change the status bar text. This works fine
in Internet Explorer.., but I can't get it to work for Firefox.

I've pasted the script below, i'd really aprechiate it if anyone could
help me out.

Kind Regards,
Mikey

***********************************************
message = " testtesttesttesttesttest " +
"testtesttesttesttest " +
" testtesttest "


scrollSpeed = 5
lineDelay = 1000

txt = ""

function scrollText(pos) {
if (message.charAt(pos) != '^') {
txt = txt + message.charAt(pos)
status = txt
pauze = scrollSpeed
}
else {
pauze = lineDelay
txt = ""
if (pos == message.length-1) pos = -1
}
pos++
setTimeout("scrollText('"+pos+"')",pauze)
}

scrollText(0)

******************************************************
 
J

Jedi Fans

Mickey said:
Hi,

I am jst writing to ask if anyone could help with this?
I have a simple script to change the status bar text. This works fine
in Internet Explorer.., but I can't get it to work for Firefox.

I've pasted the script below, i'd really aprechiate it if anyone could
help me out.

Kind Regards,
Mikey

***********************************************
message = " testtesttesttesttesttest " +
"testtesttesttesttest " +
" testtesttest "


scrollSpeed = 5
lineDelay = 1000

txt = ""

function scrollText(pos) {
if (message.charAt(pos) != '^') {
txt = txt + message.charAt(pos)
status = txt
pauze = scrollSpeed
}
else {
pauze = lineDelay
txt = ""
if (pos == message.length-1) pos = -1
}
pos++
setTimeout("scrollText('"+pos+"')",pauze)
}

scrollText(0)

******************************************************
in firefox goto tools>options>web features>where it says enable
javascript click advanced>make sure allow scripts to: change status bar
text is checked [it is disabled as many users find this behaviour annoying]
 
M

Mickey

Hi,
Thanks for the reply.

I had previously thought that could be the problem, however I have
enabled that feature and this still won't run on Firefox.

Thanks anyway for the suggestion.
Mikey
 
S

Stephen Chalmers

Mickey said:
Hi,

I am jst writing to ask if anyone could help with this?
I have a simple script to change the status bar text. This works fine
in Internet Explorer.., but I can't get it to work for Firefox.

I've pasted the script below, i'd really aprechiate it if anyone could
help me out.
status = txt

Mozilla seems to think you're creating a global variable. Use: window.status=txt;
 
M

Mickey

Hi,

Just an update.
Mozilla seems to think you're creating a global variable. Use: window.status=txt;
I just tried this and it worked perfect, thanks so much.

Thanks again,
Mikey
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top