> home
> how we work
> who we're working for
> about us
> publications
> buy apache essentials
> client login

play
static·red
edmonton and area web development

Current Projects

Edmonton Weather


>>Le blog.

speakeasy archives


site news.

<< what to get for the Scotsman that has everything... | Main | For crying out loud, let it GO already! >>

site news: I added a little bit of javascript wizardry to turn off stylesheets for you poor, pathetic Fucking-Netscape-Four-Point-X people. Don't say I never do anything for you guys. ;)For yer own reference (in case you're too lazy to view source):


<script type="text/css"><!-- if (document.getElementById) { document.write('<k rel\="stylesheet" type\="text\/css" href\="staticred.css">'); } --> </script> Basic explanation: If the browser properly supports CSS, it will understand the document.getElementByID statement and write out the link to the external style sheet. IE, Opera, NS 6 -- these all parse that just peachy. If it doesn't understand that, it skips by the document.write, and goes on its merry way, never having known a stylesheet existed.Parts of the code came from a list apart, Jeffrey Zeldman's little HTML standards rag. I'm using the same code later, though modified to do if (!document.getElementById) -- the ! being a NOT statement -- to write out the nice, polite little message NS 4.x users see at the top of the screen.

Posted by Darren James Harkness on Saturday, April 14, 2001 12:45 AM
Trackbacks...


Comments:

Post a comment









Remember personal info?


Comments:


* under no circumstances will your email address be traded for a sack of quarters. No-sirree.