denoteone Posted September 7, 2010 Share Posted September 7, 2010 I am using a nivo slider that doesn't work in IE 6. I am trying to think of the best way to verify the users browser and if it is IE 6 show a static image anything else show slider. Is PHP the best way to accomplish this? Quote Link to comment Share on other sites More sharing options...
petroz Posted September 7, 2010 Share Posted September 7, 2010 PHP will prob be the most reliable method as not everyone has javascript enabled... You could do something like this.. Havent tested this as I refuse to run anything on a PC... Sorry! <?php $useragent = $_SERVER['HTTP_USER_AGENT']; $ie6 = "MSIE 6."; $is_ie6 = strpos($useragent,$ie6); if($is_ie6 == 'true'){ echo "Ooops, your feel into a time machine and are running IE6!"; } Quote Link to comment Share on other sites More sharing options...
Rifts Posted September 7, 2010 Share Posted September 7, 2010 echo "Ooops, your feel into a time machine and are running IE6!"; lol at that line Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.