Status bar text script

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mickey

    Status bar text script

    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 = " testtesttesttes ttesttest " +
    "testtesttestte sttest " +
    " 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("scr ollText('"+pos+ "')",pauze)
    }

    scrollText(0)

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

  • Jedi Fans

    #2
    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 = " testtesttesttes ttesttest " +
    > "testtesttestte sttest " +
    > " 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("scr ollText('"+pos+ "')",pauze)
    > }
    >
    > scrollText(0)
    >
    > *************** *************** *************** *********
    >[/color]
    in firefox goto tools>options>w eb 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]

    Comment

    • Mickey

      #3
      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

      Comment

      • Stephen Chalmers

        #4
        Re: Status bar text script

        Mickey <mickey.allroid @gmail.com> wrote in message news:1122273134 .451935.25300@g 44g2000cwa.goog legroups.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=t xt;

        --
        S.C.


        Comment

        • Mickey

          #5
          Re: Status bar text script

          Hi,

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

          Thanks again,
          Mikey

          Comment

          Working...