Results 1 to 2 of 2

Thread: Redirect Count down

  1. #1
    Join Date
    Nov 2008
    Posts
    20

    Redirect Count down

    Hi,

    I want to do a redirect count so that the user can see the count going down. for example, I want them to be able to see the following.

    You will be redirected in 5 seconds.

    The user should be able to see the count going down from 5 to 4 to 3 to 2 to 1 and then they are redirected.

    I can get the page to redirect after 5 seconds but I want the user to be able to see it count down.

    Thanks in advance for your help

  2. #2
    Join Date
    Jan 2009
    Posts
    48

    Re: Redirect Count down

    The following JavaScript will definitely help you. Copy this in any of the BODY of your page:
    Code:
     <span><span style="direction: <span ltr; text-align: left" class="google-src-text"> 
    <form name="redirect"> <center> 
    <font face="Arial"> <b> Our address has changed http://forums.techarena.in/ <br> Your browser will take you to it<input type="text" <form> size="3" name="redirect2"> < / form> seconds </ b> </ font> </ center> 
    
    <script> <! - // change here TargetURL 
    var address = "http://www.xyz.com" 
    // change the seconds you want duration of the countdown 
    countdownfrom var = 10 var document.redirect.redirect2.value currentsecond = 1 function = countdownfrom countredirect () {if (currentsecond! = 1) {currentsecond-= 1} 
    else document.redirect.redirect2.value = currentsecond {window.location = TargetURL return} setTimeout ("countredirect ()", 1000)} countredirect () //--> </ script> </ span>

Similar Threads

  1. Replies: 6
    Last Post: 25-02-2011, 10:40 AM
  2. How can I use the count() function in CPP
    By Garett in forum Software Development
    Replies: 5
    Last Post: 12-02-2010, 09:07 PM
  3. What is Regexp count
    By GunFighter in forum Software Development
    Replies: 3
    Last Post: 06-08-2009, 02:21 PM
  4. How To Count The Number Of Characters?
    By Harsh01 in forum Software Development
    Replies: 2
    Last Post: 13-02-2009, 12:25 PM
  5. How can I get the row count from DataGrid?
    By Shashikant in forum Software Development
    Replies: 4
    Last Post: 04-02-2009, 11:47 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,710,841,046.00735 seconds with 17 queries