You could use php...
1 2 3 4 5 6 7 8 9 10
| <html> <body> <?php if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']), "chrome") > -1) { ?> <!-- Chrome html here --> <?php } else { ?> <!-- Display error! --> <?php } ?> </body> </html
|
I have used your suggestion and made this:
1 2 3 4 5 6 7
| <?php if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']), "chrome") > -1) { ?> <!-- <p><font face="arial" size="24"><b>IM USING CHROME!!! </b></font></p> --> <?php } else { ?> <!-- <p>get chrome!</p> --> <?php } ?>
|
however this is displayed on both chrome and firefox: -1) { ?>
edit: if i take out the <!-- and --> on both, it displays all 3:
-1) { ?>
IM GETTING CHROME
get chrome!