I use the following to determine what stylesheet to load.
Can anyone (I'm sure they can) point out an easier way to do this???
One that is foolproof, no matter what OS or browser is used?

<cfscript>
// Determine which style sheet should be loaded
        if (HTTP_USER_AGENT CONTAINS "Windows")
                Client.CSS="pc.css";
        else if (HTTP_USER_AGENT CONTAINS "Macintosh" AND HTTP_USER_AGENT CONTAINS
"Netscape6")
                Client.CSS="pc.css";
        else if (HTTP_USER_AGENT CONTAINS "Macintosh" AND HTTP_USER_AGENT DOES NOT
CONTAIN "Netscape6")
                Client.CSS="mac.css";
        else if (HTTP_USER_AGENT CONTAINS "Linux")
                Client.CSS="linux.css";
        else
                Client.CSS="pc.css";
</cfscript>

Ch� Vilnonis
Application Developer
Advertising Systems Incorporated
8470C Remington Avenue
Pennsauken, NJ 08110
p: 856.488.2211
f: 856.488.1990
www.asitv.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to