simple: Browser detection?
-
Hia!
Still being a total newbie, I’m having troubles to properly detect a browser. (I need this to serve MSIE a different stylesheet, and some script-stuff).
I managed to successfully throw a copy of the //Simple browser detection from the file vars.php into the header.php, but of course I’d prefer to use the “original” (already generated) variable that comes out of the vars.php.
What string would I insert into the headers.php? (I tried stuff like
<?php
if (($is_winIE) || ($is_macIE) {
?>
<link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_directory’); ?>/styleMSIE.css” type=”text/css” media=”screen” />
<?php }
else {
?>
<link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
<?php } ?>but this does not work unless I previously included the browser-detection…
(syntax errors in this post are typoes)TIA (a lot of)
david
- The topic ‘simple: Browser detection?’ is closed to new replies.