Connecting Tech Pros Worldwide Forums | Help | Site Map

Status bar text script

Mickey
Guest
 
Posts: n/a
#1: Jul 25 '05
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)

************************************************** ****


Jedi Fans
Guest
 
Posts: n/a
#2: Jul 25 '05

re: Status bar text script


Mickey wrote:[color=blue]
> 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)
>
> ************************************************** ****
>[/color]
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]
Mickey
Guest
 
Posts: n/a
#3: Jul 25 '05

re: Status bar text script


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

Stephen Chalmers
Guest
 
Posts: n/a
#4: Jul 25 '05

re: Status bar text script


Mickey <mickey.allroid@gmail.com> wrote in message news:1122273134.451935.25300@g44g2000cwa.googlegro ups.com...[color=blue]
> 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.
>[/color]
[color=blue]
> status = txt[/color]

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

--
S.C.


Mickey
Guest
 
Posts: n/a
#5: Jul 25 '05

re: Status bar text script


Hi,

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

Thanks again,
Mikey

Closed Thread


Similar JavaScript / Ajax / DHTML bytes