[thelist] Dynamic StyleSheets?
Tony K Bounds
tbounds at gci.net
Sun Jul 23 23:40:19 CDT 2000
on 7/23/00 6:20 PM, Eric Costello at eric at schwa.com wrote:
> Not sure if this is exactly what you are looking for, but here is a solution
> I have used to feed one style sheet to both NS and IE, one with NS specific
> styles to NS and another with IE styles to IE. Just include it all in the
> head of your document. The "disabled" attribute is only understood by IE, so
> NS ignores the attribute while IE ignores the style sheet. "document.all"
> evaluates to false in NS, true in IE.
>
>
> <link rel="stylesheet" type="text/css" href="both.css">
> <link rel="stylesheet" type="text/css" href="ns.css" disabled>
> <script language=javascript>
> <!--
> if (document.all) {
> document.write('<link rel="stylesheet" type="text/css" href="ie.css">');
> //-->
> </script>
Looks like I can use it. Thanks Eric.
___________________________________________________www.vitalifetech.com__
__ _____ _______
\ \/ /| | |_ _| Vital Life Technologies T o n y B o u n d s
\ / | l___ | | 205 E. Dimond Blvd.,Suite 459 tbounds at vitalife.com
\/ l____| |_| Anchorage, AK 99515 Ph: 907-349-7185
Fax: 907-522-1345
__Life Enhancing Products for the Mind and Body__________________________
More information about the thelist
mailing list