Jake Churchill

… on Flex, ColdFusion, FarCry, and much more …

  • Home
  • About
  • Projects

13

Nov

Quick Browser Detection for CSS Script

Posted by Jake Churchill  Published in Browsers, CSS, ColdFusion

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″>
[...]

Continue reading...

no comment

Search

Blog Feed

  • Add blog to any reader
  • Comments Rss
November 2006
M T W T F S S
    Dec »
 12345
6789101112
13141516171819
20212223242526
27282930  

Subscribe to Blog

Your email:

Subscribe   Unsubscribe

Archives

Categories

  • Browsers (3)
  • CFEclipse (2)
  • ColdFusion (5)
  • CSS (9)
  • Farcry (32)
    • Farcry Examples (2)
    • Farcry Users (1)
  • Flash (1)
  • Flex (14)
  • Javascript (5)
  • Life & Fun (3)
  • Microsoft Office (1)
  • Misc (4)
  • Random Posts (1)
  • SQL (2)

Recent Posts

  • Flex 2 Datagrid not highlighting row (UPDATE)
  • Flex 2 Datagrid not highlighting row
  • Flex Dynamic casting of data
  • Reboot XP PC over Remote Desktop
  • Dynamically instantiate a class

Recent Comments

  • jellyBean on Flex Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 200
  • Wouter Meeuwisse on CSS Browser Hacks
  • Jake Churchill on Flex Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 200
  • coulix on Flex Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 200
  • Jake Churchill on IE menu hover fix

Recent Post

  • Flex 2 Datagrid not highlighting row (UPDATE)
  • Flex 2 Datagrid not highlighting row
  • Flex Dynamic casting of data
  • Reboot XP PC over Remote Desktop
  • Dynamically instantiate a class
  • Flex Custom Preloader without SWF
  • IE menu hover fix
  • Eclipse with plugins
  • Flex Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 200
  • Flex Metadata - Default Property Values

Recent Comments

  • jellyBean in Flex Channel.Connect.Failed error NetConnection.Ca…
  • Wouter Meeuwisse in CSS Browser Hacks
  • Jake Churchill in Flex Channel.Connect.Failed error NetConnection.Ca…
  • coulix in Flex Channel.Connect.Failed error NetConnection.Ca…
  • Jake Churchill in IE menu hover fix
  • nwhysel in IE menu hover fix
  • Jake Churchill » Post Topic &… in Flex 2 Datagrid not highlighting row
  • Jake Churchill in Reboot XP PC over Remote Desktop
  • Jake Churchill in IE6 PNG Transparency Fix
  • oomes in IE6 PNG Transparency Fix
© 2008 Jake Churchill is proudly powered by WordPress
Theme designed by Roam2Rome