Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2006
    Location
    wolvo init lol.
    Posts
    2,272
    Tokens
    0

    Latest Awards:

    Default Page redirect wiht countdown.

    Hey, I need the code for a page which redirects after 10 or 15 seconds, eg index2.php whichthen redirects to index.php, with a thing that counts down to tell you when the page redirects. Thanks.
    Last edited by reindeer.; 29-09-2006 at 03:55 PM.

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

    Latest Awards:

    Default

    HTML Code:
    <html>
    <head>
      <title>Redirecting!</title>
    
      <script type="text/JavaScript">
      <!--
       function countDown() {
          var secHold = document.getElementById('seconds');
          if(secHold.innerHTML == '1') {
            document.location.href = 'index2.php';
          } else {
             secHold.innerHTML = Number(secHold.innerHTML) - 1;
          }
       }
       -->
      </script>
    </head>
    <body onLoad="setInterval('countDown();', 1000);">
    
      <center> This page will redirect in <div id="seconds">10</div> seconds. </center>
    
    </body>
    </html>
    Haven't tested.
    kinda quit.

  3. #3
    Join Date
    May 2006
    Location
    Huntingdon (Cambridgeshire UK)
    Posts
    3,395
    Tokens
    0

    Latest Awards:

    Default

    Nice ill av a go.

  4. #4

    Default

    If you still need one tell me, i've got a good one

  5. #5
    Join Date
    Apr 2006
    Location
    wolvo init lol.
    Posts
    2,272
    Tokens
    0

    Latest Awards:

    Default

    Thanks. I'll rep if it works.

Posting Permissions

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