The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

style sheet/stupid NS4 question by nawft 2002-06-05 18:14:30
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?
[ Reply ]
  Nasty. by Didactylos2002-06-05 19:17:10
    indeed. by nawft2002-06-05 19:43:15

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)