Results 1 to 4 of 4

Thread: Netscape Compatibility?

  1. #1
    Join Date
    Apr 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Netscape Compatibility?

    Script: AnyLink Drop Down Menu
    http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    I posted the code given for this drop down menu on the following test page and when checking in Netscape 4.7 it doesn't work and shows an error message "JavaScript error" at the bottom of the page.
    Test page: http://www.maikaihawaii.com/testmenu.htm

    The same results on a modified version that was installed on the new web site we're working on. Following is a page where it is located:
    http://www.maikaihawaii.com/hawaiian...es_lotions.htm

    It seems to work fine in Internet Explorer but when checking on Netscape it doesn't work. Is it because it's we're using an older version of Netscape? Maybe it works in newer versions?

    Any insight or assistance will be greatly appreciated!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yes and yes. Netscape 4.7 is so old that it crashes frequently on pages using modern css style, let alone JavaScript. Luckily it did not crash on this. To quote from the page where this script is featured:

    "This script works in all the major DHTML browsers- IE4+, NS6+, and Opera7+."

    You can eliminate the error by adding these two lines:
    Code:
    if (document.layers)
    return;
    before the line that reads:
    Code:
    if (window.event) event.cancelBubble=true
    This will not make it work though. You could add a script to the body that provides alternate content like:
    Code:
    <script type="text/javascript">
    if (document.layers)
    document.write('<br>&nbsp;<br><a href="http://www.javascriptkit.com">JavaScript Kit</a><br>\
              <a href="http://www.freewarejava.com">Freewarejava.com</a><br>\
              <a href="http://codingforums.com">Coding Forums</a><br>\
              <a href="http://www.cssdrive.com">CSS Drive</a>');
    </script>
    just below this line:
    Code:
    <a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()">Web Design</a>
    Hope this helps.
    Last edited by jscheuer1; 04-19-2005 at 10:31 PM. Reason: format code
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Apr 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Netscape Compatibility?

    Thank you, thank you, thank you!

    You've been a HUGE help and we sincerely appreciate your time and knowledge.

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Just FYI, I explicitly removed support for NS4 in Anylink Menu in the last update to it a couple of weeks ago. This is following a trend to drop NS4 completely from the picture due to its basically non existent status on the web these days. Removing support provides more benefits than clinging on to it in my opinion, such as leaner, more efficient code.

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
  •