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.
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 .
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+
Bookmarks