March 25th, 2002, 07:50 AM
browser dependant css file possible?
At the moment I have a browser detect on my page that will redirect ns users to a ns specific page.
What I would like to do for my next project is merely redirect them to a different style sheet.
Is this possible?
March 25th, 2002, 08:04 AM
One way is to just do your browser detect then document.write the links to external CSS files within a switch control.
March 25th, 2002, 04:25 PM
look at http://devedge.netscape.com for further reference.
March 25th, 2002, 04:29 PM
if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4))
document.write('<link rel="stylesheet" type="text/css" href="ns4_style.css">');
else document.write('<link rel="stylesheet" type="text/css" href="default_style.css">');
In the <head>er; file names (blue), up to you...
March 25th, 2002, 04:33 PM
March 25th, 2002, 04:37 PM
what is "backwards" about this?
March 25th, 2002, 04:58 PM
You've got JSSS 'redefining' CSS - it's the other way around.