View Full Version : Diff pages
:Blob
05-04-2006, 05:43 PM
Ive seached google but is there a PHP script to do different pages for different web browsers?
redtom
05-04-2006, 05:53 PM
i found a javascript one on google but forgot the url to it soz :(
You could have something like:
<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>
(I haven't tested it).
Mentor
05-04-2006, 06:13 PM
Quite easy to do yourself "/
<?php
$browser = get_browser('browser');
if ($browser = "Firefox"){
header("Location: firefoxpage.php");}
elseif ($browser = "Opera"){
header("Location: OperaPage.php");}
else{
header("Location: IEpage.php");}
?>
U may want to check what some browsers idenetife as thogh, as i was to lazy to look it up :D
EDIT: forgot a { :eusa_whis
:Blob
05-04-2006, 06:16 PM
thanks Mentor
:Blob
11-04-2006, 05:44 PM
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?
Mentor
11-04-2006, 05:52 PM
probaly just another one of the n00bs that have already infested most of habbox and are working there way in to this section to "/
:Blob
11-04-2006, 05:57 PM
Lol. Anyway sorry for bumping a old post we can let it go back to its hiding place now
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.