How to redirect with countdown

Discussion in 'HTML & Website Design' started by geeks4share, Sep 14, 2010.

  1. #1
    Hey everyone,

    We use
    to redirect people when they visit us. How to redirect by showing a countdown?

    I have seen in many website, they redirect by showing a countdown. Is this possible to do only with HTML?

    Thanks
     
    geeks4share, Sep 14, 2010 IP
  2. GreenT

    GreenT Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    GreenT, Sep 14, 2010 IP
  3. earthgrub1

    earthgrub1 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Is this any good for you.

    <form name="redirect">
    <center>
    <font face="Arial"><b>You will be redirected to the script in<br><br>
    <form>
    <input type="text" size="3" name="redirect2">
    </form>
    seconds</b></font>
    </center>

    <script>
    <!--



    //change below target URL to your own

    var targetURL="http://ebay.co.uk"

    //change the second to start counting down from
    var countdownfrom=10


    var currentsecond=document.redirect.redirect2.value=countdownfrom+1
    function countredirect(){
    if (currentsecond!=1){
    currentsecond-=1
    document.redirect.redirect2.value=currentsecond
    }
    else{
    window.location=targetURL
    return
    }
    setTimeout("countredirect()",1000)
    }

    countredirect()
    //-->
    </script>
     
    earthgrub1, Oct 29, 2010 IP
  4. tommyboy9810

    tommyboy9810 Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    <html><head>
    <META HTTP-EQUIV=Refresh CONTENT="5; URL=http://www.123.com">
    </head><body>
    </body></html>


    [Put 5 or 4 or 3 etc, any number you want.]
     
    tommyboy9810, Oct 29, 2010 IP
  5. exaltweb

    exaltweb Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    hi...I've a sound knowledge about web desiging, however as much as i know Redirect is a module that show a countdown before redirect your user to a specific page.
     
    exaltweb, Oct 30, 2010 IP