I am working on a web page that is chock full of DXHTML/CSS goodness. Plenty of positioning, dynamic visibility changes and pretty colors.
It works and looks quite good on IE 4+, Konqueror (2.1.1), Mozilla, NS4(with Javascript on), and even looks acceptable in lynx.
I know that not everyone uses Javascript and a lot of DHTML websites will not work at all without javascript. I hate that and want my code to degrade gracefully. The only browser it does not do that for is NS4.
I have my javascript write out the uber stylesheet link, and place the link to the not so uber css file inside the noscript tag. That works fine except in NS4. NS4 doesn't seem to get any style at all.
How can I fix that? and I don't want to do the hokey "make them choose high tech or low tech" thing. That's a web programmer copout
my relevant code:
<script language="JavaScript" type="text/javascript">
<!--
document.write('<link rel="stylesheet" type="text/css" href="style.css" />');
// -->
</script>
<noscript>
<link rel="stylesheet" type="text/css" href="style2.css" />
</noscript>
I wonder if NS is not looking at the noscript tag because it does support Javascript? |