Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 8 of 8

Thread: Diff pages

  1. #1
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default Diff pages

    Ive seached google but is there a PHP script to do different pages for different web browsers?

  2. #2
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    i found a javascript one on google but forgot the url to it soz

  3. #3
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    You could have something like:
    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>
    (I haven't tested it).

  4. #4
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Quite easy to do yourself "/
    PHP 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");}
    ?>
    U may want to check what some browsers idenetife as thogh, as i was to lazy to look it up

    EDIT: forgot a { :eusa_whis
    Last edited by Mentor; 05-04-2006 at 06:21 PM.

  5. #5
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    thanks Mentor

  6. #6
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    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?

  7. #7
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    probaly just another one of the n00bs that have already infested most of habbox and are working there way in to this section to "/

  8. #8
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    Lol. Anyway sorry for bumping a old post we can let it go back to its hiding place now

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •