www.webdeveloper.com
Results 1 to 4 of 4

Thread: my browser detect script hangs page

  1. #1
    Join Date
    Nov 2002
    Posts
    2

    my browser detect script hangs page

    Hi, I built a site for a client, http://www.somersetorganics.co.uk/erol/erol.html, which works perfectly on all browsers, except I have a bit of javascript in the menu which chooses a style sheet depending on whether its netscape or ie, which works perfectly in ie all versions and netscape 4.79, but the page will not load in netscape 6 or 7, is it conflicting with some other script? any help would be greatly appreciated.
    thanks

    felix corke

    Last edited by felixcorke; 11-22-2002 at 05:51 AM.

  2. #2
    Join Date
    Nov 2002
    Posts
    4,473
    Please post the script that you are talking about so we don't have to weed through your whole page.

  3. #3
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    And your browser detect makes the page not work at all on my browser, Opera 6.05. I would suggest that you make your site work for people who eschew JavaScript quickly and before your client finds out .

  4. #4
    Join Date
    Nov 2002
    Posts
    2
    yeah, i know its a nightmare, its half generated by a store-building software app, i put in this code: if (navigator.appName == "Netscape") {
    document.write('<LINK REL="StyleSheet" HREF="http://www.somersetorganics.co.uk/Netscapesomersetorganicsstylee.css" TYPE="text/css">');
    } else{
    document.write('<LINK REL="StyleSheet" HREF="http://www.somersetorganics.co.uk/somersetorganicsstylee.css" TYPE="text/css">');
    }


    which chooses the sylesheet, in nn4.79 it works fine and writes it to the page perfectly, I cant work out what its doing to nn6+

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles