welo
06-14-2002, 08:58 PM
This is prolly a JS question, though here goes anyway:
How do I detect NS4 and make it use a different external stylesheet? is it just something like:
<link href="main.css" rel="styleSheet" type="text/css">
if (document.layers)
document.location = "ns4.css"
or similar? I hate accounting for NS4, though it won't support css background effects like no-repeat etc. If I can just shunt it to a different stylesheet all will be right with the world :). I can't get this to work for some reason. Do I need an 'else' statement?
How do I detect NS4 and make it use a different external stylesheet? is it just something like:
<link href="main.css" rel="styleSheet" type="text/css">
if (document.layers)
document.location = "ns4.css"
or similar? I hate accounting for NS4, though it won't support css background effects like no-repeat etc. If I can just shunt it to a different stylesheet all will be right with the world :). I can't get this to work for some reason. Do I need an 'else' statement?