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: Redirection

  1. #1
    Join Date
    Jul 2004
    Posts
    1,457
    Tokens
    0

    Latest Awards:

    Default Redirection

    Does anyone know the code for redirection, eg: the page will be redirected to the homepage in 7 secs.
    Thanks

  2. #2
    Join Date
    Jul 2004
    Location
    Bournemouth. UK
    Posts
    3,638
    Tokens
    0

    Latest Awards:

    Default

    HTML Code:
    <meta http-equiv="REFRESH" content="5;url=index.php">
    It should look like this...
    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta http-equiv="REFRESH" content="5;url=index.php">
    </head>
    I think that's it anyway...
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

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

    Latest Awards:

    Default

    Or if you for an obscure reason dont want a metter refresh theres a javascript redirect.

    HTML Code:
    <SCRIPT LANGUAGE="JavaScript">
    window.location="http://www.yourdomain.com/";
    </script>

  4. #4
    Join Date
    Jul 2004
    Posts
    1,457
    Tokens
    0

    Latest Awards:

    Default

    Ok, Thanks
    First one worked
    Thanks

  5. #5
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default

    I would use this as it has a timer although all the other methods are perfect..
    <script language="JavaScript">
    var time = null
    function move() {
    window.location = 'http://www.yourdomain.com'
    }
    </script>
    that goesin the head tag and then to change the time add this in the body

    <body onload="timer=setTimeout('move()',2000)"> thee 2000 is the time so change that to change the time


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

  6. #6
    Join Date
    Jul 2004
    Location
    Bournemouth. UK
    Posts
    3,638
    Tokens
    0

    Latest Awards:

    Default

    Always happy to help

    @Mentor. Why wouldn't u want 1?!1! It's like the easiest there is :eusa_shif

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

    Latest Awards:

    Default

    i did say for any obscure reason. its just another way of doing it.

    most efficant way would just be use a php header redirect, but youd need php for that

  8. #8
    Join Date
    Jul 2004
    Location
    Bournemouth. UK
    Posts
    3,638
    Tokens
    0

    Latest Awards:

    Default

    lol, yes i suppose you would
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

Posting Permissions

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