Thought I posted this here already, but I guess I didn't. Here's a javascript to detect the user's browser, and load the appropriate stylesheet. I came up with this script because some of the css things I had once been doing were not friendly with NS.
<SCRIPT language="JavaScript">
<!–
var browserName=navigator.appName;
if (browserName=="Microsoft Internet Explorer")
{
//load ie friendly stylesheet
document.write('<link rel="stylesheet" href="/stylesie.css" type="text/css">')
}
else
{
if ((parseFloat(navigator.appVersion)) >= 5 )
{
// if ns version is great than or equal to 5 (6) load this stylesheet
document.write('<link rel="stylesheet" href="/stylesie.css" type="text/css">')
} else {
//if you have a really ancient browser 😉 (ie. NS 4.7 or earlier) load this stylesheet
document.write('<link rel="stylesheet" href="/stylesns.css" type="text/css">')
}
}
//–>
</SCRIPT>
<NOSCRIPT>
<!– if you don't have javascript running – assume you have an ancient browser and load the ancient friendly stylesheet –>
<link rel="stylesheet" href="/stylesns.css" type="text/css">
</NOSCRIPT>
I'm sure there's a way to do that in PHP – anyone want to take a shot?