Hide status bar link

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

    Hide status bar link

    I have a disclaimer page prior to a visitor going to my FAQ page. I want to
    hide the link which normally appears in the status bar from visitors seeing
    it.

    I am using the following code which works fine except that the "I Agree"
    link still shows the link path. What's wrong - driving me nuts!!??
    <script language="JavaS cript">

    <!-- Hide the script from old browsers --

    function a(txt) {

    self.status = txt

    }

    function b() {

    self.status = ""

    }

    // --End Hiding Here -->

    </script>

    <A HREF="index.htm l" onMouseOver="a( 'Return to Home Page');return true"

    onMouseOut="win dow.status=''; ">I Disagree</a>

    <p>

    <A HREF="freqquest .html" onMouseOver="a( 'Go to FAQ's Page');return true"

    onMouseOut="win dow.status=''; ">I Agree</a>


    --
    Ian Shere
    Tarzan Design Ltd
    Award Winning Architecture



  • VK

    #2
    Re: Hide status bar link

    window.status=" ..."; return true;

    To activate the status change, you always have to return the true.
    It comes from NN v2 prehistory, and it has no sense or use anymore, but
    ECMA keeps it for some reason (nostalgia?).


    Comment

    • Ian Shere

      #3
      Re: Hide status bar link

      Not sure exactly where that's to go - I copied it to where it seemed it
      should be and nothing worked at all. So I am back to where I started with
      the 2nd link path ALWAYS showing in the status bar and the first nicely
      displaying my message.


      --
      Ian Shere
      Tarzan Design Ltd
      Award Winning Architecture

      "VK" <schools_ring@y ahoo.com> wrote in message
      news:3fe253f5$0 $22081$9b622d9e @news.freenet.d e...[color=blue]
      > window.status=" ..."; return true;
      >
      > To activate the status change, you always have to return the true.
      > It comes from NN v2 prehistory, and it has no sense or use anymore, but
      > ECMA keeps it for some reason (nostalgia?).
      >
      >[/color]


      Comment

      • Ian Shere

        #4
        Re: Hide status bar link

        Figured it out! It was in this piece of code - onMouseOver="a( 'Go to FAQ's
        Page');return true. JS was reading the ' in FAQ's as the end of that
        portion of text and then didn't know what to do with 's - I just didn't
        notice the error message in the status bar!


        --
        Ian Shere
        Tarzan Design Ltd
        Award Winning Architecture

        "Ian Shere" <ian@tarzandesi gn.co.nz> wrote in message
        news:I_rEb.1364 6$ws.1335771@ne ws02.tsnz.net.. .[color=blue]
        > I have a disclaimer page prior to a visitor going to my FAQ page. I want[/color]
        to[color=blue]
        > hide the link which normally appears in the status bar from visitors[/color]
        seeing[color=blue]
        > it.
        >
        > I am using the following code which works fine except that the "I Agree"
        > link still shows the link path. What's wrong - driving me nuts!!??
        > <script language="JavaS cript">
        >
        > <!-- Hide the script from old browsers --
        >
        > function a(txt) {
        >
        > self.status = txt
        >
        > }
        >
        > function b() {
        >
        > self.status = ""
        >
        > }
        >
        > // --End Hiding Here -->
        >
        > </script>
        >
        > <A HREF="index.htm l" onMouseOver="a( 'Return to Home Page');return true"
        >
        > onMouseOut="win dow.status=''; ">I Disagree</a>
        >
        > <p>
        >
        > <A HREF="freqquest .html" onMouseOver="a( 'Go to FAQ's Page');return true"
        >
        > onMouseOut="win dow.status=''; ">I Agree</a>
        >
        >
        > --
        > Ian Shere
        > Tarzan Design Ltd
        > Award Winning Architecture
        > www.tarzandesign.co.nz
        >
        >[/color]


        Comment

        • David Dorward

          #5
          Re: Hide status bar link

          Ian Shere wrote:
          [color=blue]
          > I have a disclaimer page prior to a visitor going to my FAQ page. I want
          > to hide the link which normally appears in the status bar from visitors
          > seeing it.[/color]

          Rule 1: If you hide something from the user, you are going to annoy people.
          Rule 2: If you hide something from the user with JavaScript, its likely to
          be trivial to unhide it

          (and I love Mozilla's "Allow Scripts to: [] Change status bar text" option)

          Security thorough obscurity is not security:


          (and click through agreements are worthless anyway)

          --
          David Dorward <http://dorward.me.uk/>

          Comment

          • kaeli

            #6
            Re: Hide status bar link

            In article <bruaj1$t0n$2$8 300dec7@news.de mon.co.uk>, dorward@yahoo.c om
            enlightened us with...[color=blue]
            >
            > (and I love Mozilla's "Allow Scripts to: [] Change status bar text" option)
            >[/color]

            You're not the only one. :)

            I HATE when people change my status bar.

            And in IE, if I really care, I can get the properties of the link to see
            where it goes. Last resort I can view the source of the page.

            --
            --
            ~kaeli~
            If it's tourist season, why can't we shoot them?



            Comment

            • Ian Shere

              #7
              Re: Hide status bar link

              Trivial for anyone who know JS yes - that accounts for a very small %age of
              net users.
              Second, hiding a link from appearing in the status bar is highly unlikely to
              annoy any but a minute number of users.
              Third, a click through agreement beats nothing at all, and certainly in
              court here, would be VERY useful.

              --
              Ian Shere
              Tarzan Design Ltd
              Award Winning Architecture

              "David Dorward" <dorward@yahoo. com> wrote in message
              news:bruaj1$t0n $2$8300dec7@new s.demon.co.uk.. .[color=blue]
              > Ian Shere wrote:
              >[color=green]
              > > I have a disclaimer page prior to a visitor going to my FAQ page. I[/color][/color]
              want[color=blue][color=green]
              > > to hide the link which normally appears in the status bar from visitors
              > > seeing it.[/color]
              >
              > Rule 1: If you hide something from the user, you are going to annoy[/color]
              people.[color=blue]
              > Rule 2: If you hide something from the user with JavaScript, its likely to
              > be trivial to unhide it
              >
              > (and I love Mozilla's "Allow Scripts to: [] Change status bar text"[/color]
              option)[color=blue]
              >
              > Security thorough obscurity is not security:
              > http://www.tbray.org/ongoing/When/20...egalInsecurity
              >
              > (and click through agreements are worthless anyway)
              >
              > --
              > David Dorward <http://dorward.me.uk/>[/color]


              Comment

              • David Dorward

                #8
                Re: Hide status bar link

                Ian Shere wrote:

                Please read: http://www.allmyfaqs.com/faq.pl?How_to_post
                [color=blue]
                > Trivial for anyone who know JS yes - that accounts for a very small %age
                > of net users.[/color]

                Or who don't know JS but know how to turn it off
                or look at the HTML source
                or right click and copy link location
                or ...
                [color=blue]
                > Second, hiding a link from appearing in the status bar is highly unlikely
                > to annoy any but a minute number of users.[/color]

                But a much larger proportion of users who bother to look at the status bar
                [color=blue]
                > Third, a click through agreement beats nothing at all, and certainly in
                > court here, would be VERY useful.[/color]

                I'm not an expert in this field, but I find it highly doubtful that it will.
                How do you prove they clicked through?

                --
                David Dorward <http://dorward.me.uk/>

                Comment

                • @SM

                  #9
                  Re: Hide status bar link



                  Ian Shere a ecrit :[color=blue]
                  >
                  > Figured it out! It was in this piece of code - onMouseOver="a( 'Go to FAQ's
                  > Page');return true. JS was reading the ' in FAQ's as the end of that
                  > portion of text and then didn't know what to do with 's - I just didn't
                  > notice the error message in the status bar![/color]

                  You have to use \' insteed of '

                  <A HREF="freqquest .html" onMouseOver="a( 'Go to FAQ\'s Page');return true"
                  onMouseOut="win dow.status=''; return true;">I Agree</a>

                  onmouseover
                  and
                  onmouseout
                  ! !

                  ==== how to use window.status =====

                  <script type="text/JavaScript"><!--

                  // default status message
                  stat = "My so pretty home page on Net";
                  // default status (NN)
                  defaultStatus = stat;
                  // not clever browsers with default status
                  ie = (document.all || document.getEle mentById);
                  // special function to get back default message (not for NN)
                  function b() { if(ie) {window.status = stat; return true;} }
                  // to display a message in status bar
                  function a(txt) { window.status = txt; }
                  // launch default status (on IE)
                  onload = b;

                  // --></script>

                  <A HREF="freqquest .html" onmouseover="a( 'Go to FAQ\'s Page');return true;"
                  onmouseout="b() ;">I Agree</a>

                  Comment

                  • Thomas 'PointedEars' Lahn

                    #10
                    Re: Hide status bar link

                    VK wrote:
                    [color=blue]
                    > window.status=" ..."; return true;
                    >
                    > To activate the status change,[/color]

                    which one does not really want
                    [color=blue]
                    > you always have to return the true.
                    > It comes from NN v2 prehistory, and it has no sense or use anymore, but
                    > ECMA keeps it for some reason (nostalgia?).[/color]

                    What are you talking about? There is no `status'
                    property in ECMAScript as `window' is a host object.


                    PointedEars

                    Comment

                    Working...