Giving in to JavaScript
December 2nd, 2003
if (navigator.appName.indexOf('Netscape') != -1) {
document.write('<'+'link rel="stylesheet"
href="css/FirebirdCompatible.css" />');
}
else {
document.write('<'+'link rel="stylesheet"
href="css/IEcompatible.css" />');
}
OK, so I've given in. But at least now I can get on and finish off the page, which has been languishing, three-quarters-done, for about a week now. ITauthor.com will then, finally, have a proper home page.
NOTE
In case you're wondering how I styled the code above (in other words, for my own benefit when I want to do the same thing in a few weeks time and can't remember what I did). I just typed in an inline style in the normal MovableType input box.
For more details about inline CSS, take a look at:
http://www.alabamatechnologies.com/resources/css-09.asp
Potentially similar posts
- Maintaining a Flare project in Google Code – January 2010
- Overcoming hard-coded styles in Madcap Flare – December 2009
- What I’m Reading: a new way of posting to Writer River – June 2009
- Listening to RealAudio on your MP3 player – May 2009
- Making complex ideas easy to understand using short and simple videos – October 2008