SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2000
    Location
    Charlotte, NC USA
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multi-Level Menu Snafu

    I've implemented a multi-level menu for a new site that's about to go live. The menu tests fine in everything except Netscape 6. V6 doesn't even show the main categories. That's not good.... V6 users won't have a menu at all if I can't get this fixed.

    Amazingly, the menu shows up and works just fine on all levels in Netscape 4.7.

    Here's part of the code:

    Code:
    var JDWMinNS4   = (navigator.appName.indexOf("Netscape") 
    >= 0 && parseFloat(navigator.appVersion) >= 4) ? 1 : 0;
    var JDWMinNS6   = (navigator.appName.indexOf("Netscape") 
    >= 0 && parseFloat(navigator.appVersion) == 6) ? 1 : 0;
    var JDWMinIE4   = (document.all) ? 1 : 0;
    var JDWMinIE5   = (JDWMinIE4 && navigator.appVersion.indexOf("5.")
    >= 0) ? 1 : 0;
    var JDWMinIE55  = (JDWMinIE5 && navigator.appVersion.indexOf("5.5")
    >= 0) ? 1 : 0;
    function hideLayer(layer) {
    if (JDWMinNS4) layer.visibility = "hide";
    if (JDWMinIE4) layer.style.visibility = "hidden";
    }
    Any ideas?

    P.S. Anybody know how to get a site to cover the entire screen in Netscape, considering Netscape doesn't support the leftmargin=0 and rightmargin=0 attributes? The design of this new site necessitates no left or right margins and of course Netscape provides them anyway.
    Last edited by ChanFan; Jun 29, 2001 at 13:04.

  2. #2
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In NS6 you need to do layer.style.visibility

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2000
    Location
    Charlotte, NC USA
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Huh?

    Did I mention I don't write this stuff? I just implement it. But I think I can make the necessary adjustments with a little more direction...
    It is easy in the world to live after the world's opinions; it is easy in solitude to live after one's own. But the great man is he who in the midst of the crowd keeps with perfect sweetness the independence of solitude.

    ~~ Emerson

  4. #4
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    function hideLayer(layer) {
    if (JDWMinIE4 || JDWMinNS6) layer.style.visibility = "hidden";
    else if (JDWMinNS4) layer.visibility = "hide";
    }

  5. #5
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And to drop the borders in NS add marginwidth="0" marginheight="0"

  6. #6
    SitePoint Enthusiast
    Join Date
    Sep 2000
    Location
    Charlotte, NC USA
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Of course... I forgot about the marginwidth attribute. Menu still doesn't work in V6, though. I'll keep trying.

    Thanks for the help!

  7. #7
    SitePoint Enthusiast
    Join Date
    Sep 2000
    Location
    Charlotte, NC USA
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have been thoroughly unsuccessful in modifying this script to conform to Netscape 6 and have no contact information for the developers.

    Any help would be appreciated. The full source code can be found here: http://www.yescoltd.com/example.txt
    It is easy in the world to live after the world's opinions; it is easy in solitude to live after one's own. But the great man is he who in the midst of the crowd keeps with perfect sweetness the independence of solitude.

    ~~ Emerson


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
  •