SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Zealot
    Join Date
    Feb 2002
    Location
    UK
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hiding the status bar compatible for Opera and Netscape

    Hi
    I’m hiding my status bar path with the following code:

    <a href="http://www.mydomain.com" onMouseOver="status='hello';return true">

    ...but have found that it doesn’t work in Opera 5 and Netscape 6
    Any ideas out there so to make it is compat?

    Thanks in advance
    sanc

  2. #2
    SitePoint Wizard
    Join Date
    Oct 2001
    Location
    Tucson, Arizona
    Posts
    1,858
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Put this in your page's <head> section:
    Code:
    <script type="text/javascript">
    <!--
    function MM_displayStatusMsg(msgStr) {
      status=msgStr;
      document.MM_returnValue = true;
    }
    //-->
    </script>
    Put this in your page's <body> section:
    A > means I intentionally broke the line for formatting purposes.
    Code:
      <a href="http://www.somesite123.com"
    > onMouseOver="MM_displayStatusMsg('stop looking at this!');
    > return document.MM_returnValue">
      a link to some site</a>

  3. #3
    SitePoint Zealot
    Join Date
    Feb 2002
    Location
    UK
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello
    Thanks Matt but I've tried the above and can't get it to work properly

    The only difference with my code is that I'm using <script type="javascript"> instead of <script type="text/javascript"> as my existing javascript won't except "text/javascript"

    The <head> section was put directly below some other javascript in the head without "-->" separating it but finished the head as
    -->
    </script></head>

    Any ideas how to get this sorted?
    The javascript by Matt is correct I take it?

    Also, is this script compatible for all ie. IE5+, Opera and NN+

    Thanks again

  4. #4
    long gone but not forgotten AljapaCo's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    548
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, this might just be me being stupid but is it the url of the links you are trying to hid??

    Just add a simple title="my link page" to your href tag and it won´t show the actual url when mouse overed!
    T O B I A S - S T R A N D H | visit my site here
    OPERA7 /MSIE6 /FireFox 1.1/Win2000 /ADSL /17" Screen /1024x768
    god doesn't create genius, he clones me.............

  5. #5
    SitePoint Wizard
    Join Date
    Oct 2001
    Location
    Tucson, Arizona
    Posts
    1,858
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by sanc
    Also, is this script compatible for all ie. IE5+, Opera and NN+
    I dunno, try it out and see for yourself!

  6. #6
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think Opera will display the <title> attribute in the status bar if you include it: :-)
    Code:
    <a href="...URI..." title="Oh, this goes to another page">anchor</a>
    ~~Ian

  7. #7
    SitePoint Zealot
    Join Date
    Feb 2002
    Location
    UK
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay guys, thanks for all your input. We’re slowly getting there.... the only browser that doesn’t disguise the status bar is..... Netscape

    Below is what’s in my html which makes IE and Opera obey my commands.

    (all in the body section)

    <a href="http://www.mydomain.com" onMouseOver="window.status='diguised';return true">

    The above makes IE display “mydomain.com” when mouseover all links and displays “disguised” when not over any links – perfect!
    Opera displays “disguised” when not over any links and also displays “see me not” from the below code – Perfect!

    A href="mydomain.com" title="see me not";return true">link name></td>

    Now then, Netscape 6.2 ignores all of the above.... – just to make life interesting!!!

    Anymore thoughts out there...
    sanc
    - if we can crack the netscape problem we will all have the standards for the above problem for IE5+, Opera5+ and Netscape 6+ to use if wanting too!!
    Once figured, I will be happy to report back the solutions for all in a nice posting.

  8. #8
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know whether that's a typo or not, but you shouldn't use "return true" for the <TITLE> attribute because it's not JavaScript -- it's part of the HTML spec.

    Why not check out one of the many JavaScript collections strewn about the Internet for status bar effects? :-)

    ~~Ian

  9. #9
    SitePoint Zealot
    Join Date
    Feb 2002
    Location
    UK
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello Everyone

    Why not check out one of the many JavaScript collections strewn about the Internet for status bar effects? :-)
    I've looked for hours but can't find one that works when tested. Most scripts are in the
    <a href="http://www.mydomain.com" onMouseOver="window.status='diguised';return true">
    form, which I have found not to work for Netscape 6+


    sanc

  10. #10
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try

    window.defaultStatus='Bloody Netscape why cant they be normal and make things work';

  11. #11
    SitePoint Zealot
    Join Date
    Feb 2002
    Location
    UK
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try
    window.defaultStatus='Bloody Netscape why cant they be normal and make things work';
    nope didn't work!!!!!!!

    maybe my NN6 and Opera5 is knackered!!!!!!!

    Thanks anyway



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •