Welcome to Jokes2000. Tips for improving your website: Graphic, HTML and javascript A fine collection of cartoons Jokes jokes jokes - get a good laugh Joke of the day and mailing list Table of contents
Jokes2000.com Jokes2000.com
 

Hide StyleSheet Up One Level.

In the following MSIE means Microsoft Internet Explorer and NN means Netscape Navigator/Communicator.

MSIE3 handles stylesheets very different than MSIE4 and NN4. A page may look "nice" in NN3 and "cool" in NN4/MSIE4. But it looks absolutely awful in MSIE3. The solution could be to disable the stylesheet in MSIE3. MSIE3 will then display the page like NN3.

NN4 do not accept the javascript/document.write script found in Browser Specific Code article. The script must be modified a little to hide the stylesheet instead of writing it. The methods below works.


<script language=javascript type="text/javascript">
<!--
if (navigator.userAgent.indexOf("MSIE 3.0") != -1)
  document.writeln('<!--') 
// -->
</script>

<link rel=StyleSheet href="mystyle.css" type="text/css">

<script language=javascript type="text/javascript">
<!--
if (navigator.userAgent.indexOf("MSIE 3.0") != -1)
  document.writeln('-') 
// End tag for MSIE3 comment below -->
</script>


Affiliate Sites: Funny Videos | Fight Videos | Free Arcade Games


welcome | cartoons | jokes | daily jokes | sitemap | search | feedback | what's new

Copyright © 1997-2007 Real Comedy Inc.