Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

conditional import

Status
Not open for further replies.

GIGN

Programmer
Oct 6, 2000
1,082
NZ
I want to be able to import an I.E. specific style sheet, to fix some display differences, and it seems to be working, but will not overwrite the same styles which have been previously defined.

So I want to import it and have it replace some of the styles, how come it does not work?

There needs to be a proper conditional import method.
 
<script language=&quot;javascript&quot;>
<!--
var browser_name = navigator.appName;
var browser_vers = parseInt(navigator.appVersion);
if (browser_name == &quot;Microsoft Internet Explorer&quot; && browser_vers >= 4) {
document.write(&quot;<style> .... </style>&quot;);
} else {
document.write(&quot;<style> .... </style>&quot;);
}
-->
</script> ---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top