Ive seached google but is there a PHP script to do different pages for different web browsers?
Printable View
Ive seached google but is there a PHP script to do different pages for different web browsers?
i found a javascript one on google but forgot the url to it soz :(
You could have something like:
(I haven't tested it).HTML Code:<script type="text/JavaScript">
<!--Begin
if(navigator.appName == 'Netscape') {
document.getElementById('eg').innerHTML = 'Hey Netscape user!';
} else if(navigator.appName == 'Microsoft Internet Explorer') {
document.getElementById('eg').innerHTML = 'Hey internet explorer user!';
} else{
document.getElementById('eg').innerHTML = 'Hey user!';
}
//Add more browsers
//-->
</script>
Quite easy to do yourself "/
U may want to check what some browsers idenetife as thogh, as i was to lazy to look it up :DPHP Code:<?php
$browser = get_browser('browser');
if ($browser = "Firefox"){
header("Location: firefoxpage.php");}
elseif ($browser = "Opera"){
header("Location: OperaPage.php");}
else{
header("Location: IEpage.php");}
?>
EDIT: forgot a { :eusa_whis
thanks Mentor
Sorry for double posting BUT WHO THE HELL BAD REPPED ME and said dont ask stupid questions when you can google it when I said that i didnt find anything on google?
probaly just another one of the n00bs that have already infested most of habbox and are working there way in to this section to "/
Lol. Anyway sorry for bumping a old post we can let it go back to its hiding place now