Count Down Timer in JS ?

Discussion in 'JavaScript' started by pulikuttann, Jul 18, 2007.

  1. #1
    I am having a website :

    http://www.rapidsurfing.net/

    The input box in it is loaded using iframe.Can I use a count down timer in that place before seeing the box ?

    After count down (eg: 10 secs ) the box should be visible.

    Plz help !
     
    pulikuttann, Jul 18, 2007 IP
  2. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #2
    ajsa52, Jul 18, 2007 IP
  3. pulikuttann

    pulikuttann Banned

    Messages:
    1,839
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sir,
    Please check my site.Its have a button " Generate " , which is loaded as frame from another page index.php.So before seeing that generate button I want a timer at that place.So what to do ?

    Help!
     
    pulikuttann, Jul 19, 2007 IP
  4. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #4
    You can have two divs. One (div1) with your frame and other (div2) with your counter
    - div1 will be visible only after timer expiration.
    - div2 will be visible only till timer expiration

    To make "div1" invisible/visible you can do:
    document.document.getElementById("div1").style.display = 'none';
    document.document.getElementById("div1").style.display = ''; // visible
     
    ajsa52, Jul 19, 2007 IP
  5. pulikuttann

    pulikuttann Banned

    Messages:
    1,839
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Can I make the count on submit button ?
    Since I am not a pro JS coder plz do help me with the code!
     
    pulikuttann, Jul 19, 2007 IP