What's wrong with JavaScript Detection?:

if ( navigator.userAgent.indexOf('Win') == -1 ) {
    document.write('<link rel="stylesheet" href="NonWindows.css">');
} else {
    document.write('<link rel="stylesheet" href="Windows.css">');
}


- SVV


----- Original Message -----
From: "Dasher" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, July 25, 2001 9:11 AM
Subject: Browser Sniffing and Serving StyleSheets


I need to sniff the operating system (Mac or PC) and browser
(Netscape or IE) type using Cold Fusion, then serve that particular
configuration a particular StyleSheet based on that info.

Does anyone  have a solution or
know where I could look for this information?

Thanks!
-- Dasher
[EMAIL PROTECTED]
http://www.bentmedia.com/
Bent Media, Inc.
128 South Clark Street
New Orleans, LA 70119-6103
Phone - 504.488.2848 x19
Fax - 504.488.2979
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to