Sent by Al Sparber on 11 August 2004 13:01
Chris Heilmann wrote:
> 3) Browser sniffing via Javascript is not really reliable. However,
> if you only want to write out a stylesheet for NS4.x you could do a
> <script type="text/javascript">if (document.layers &&
> !document.getElementById){document.write('<link rel="StyleSheet"
> href="low.css" type="text/css" />');}
> bear in mind that some other browsers might benefit from the low CSS
> aswell (escapes me now which), though.
document.layers is not necessary. If not getElementby ID makes it
redundant.
If the @import is stated with the syntax in my prior post, the style
sheet will be hidden from NN4 and IE4.x
Al Sparber - PVII
http://www.projectseven.com
DW Extensions - Menu Systems - Tutorials - CSS FastPacks
---------------------------------------------------------
Webdev Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
RSS/XML Feeds: http://www.projectseven.com/xml/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/