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 5 of 5

Thread: Help please...

  1. #1
    Join Date
    Nov 2005
    Posts
    296
    Tokens
    0

    Default Help please...

    Hey!

    Does anyone know the code so when you go on a site it says like:

    Site Name

    We are now closed. You will be re-directed to (other site name) in 5 seconds.

    Then it does redirect. Anyone know?

    Thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Webdesign Section
    Posts
    1,032
    Tokens
    0

    Latest Awards:

    Default

    Its basic javascript get it from codebelly.com or somin or u can use ur cpanel to redirect it

  3. #3
    Join Date
    Nov 2005
    Posts
    296
    Tokens
    0

    Default

    Thanks Alot

    Mike or TOX!C, my wonderful men, lock this please

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

    Latest Awards:

    Default

    Put this meta tag into the head of your document.
    HTML Code:
    <meta http-equiv="refresh"
    content="how long the user waits; 
    URL=address of site the user will be redirected to here">
    So:

    HTML Code:
    <meta http-equiv="refresh" content="5; URL=index2.htm">
    Then you'll just have to make the text saying that they'll be redirected.
    I'll make an example of something you could use for that:

    HTML Code:
    <div style="width:100%; text-align: center">
    <div 
    	style="
    	width: 350px; 
    	padding: 20px 20px 20px 20px; 
    	background-color: #dfdfdf;
    	font-family: verdana, tahoma;
    	font-size: 12px;
    	text-align: inherit;
    	margin-right: auto;
    	margin-left: auto;
    	border: 1px solid #000
    ">
    We are now closed.<br />You will be re-directed to (other site name) in 5 seconds.
    </div>
    </div>
    Hope that helped.
    kinda quit.

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

    Latest Awards:

    Default

    or.. the php way..
    PHP Code:
    <?php
    header
    ("Location: index2.html");
    ?>

    EDIT: Sorry ive just noticed you want a delay in which case this code wouldnt work


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

Posting Permissions

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