Here’s a quick script that I use in a lot of header files to detect the user’s browser. else represents Firefox in most cases.
<cfif Trim(ListGetAt(CGI.HTTP_USER_AGENT, 2, “;”)) EQ “MSIE 6.0″>
<link rel=”stylesheet” type=”text/css” href=”css/main_IE6.css” media=”screen” />
<cfelseif Trim(ListGetAT(CGI.HTTP_USER_AGENT, 2, “;”)) EQ “MSIE 7.0″>
[...]
