Jump to content

Countdown clock help


toolman

Recommended Posts

Hi there,

 

I have a countdown clock that counts down. I wanted to know if there is a way I can display the end time up until the countdown should begin.

 

This is the code I have:

 

<script language="javascript" type="text/javascript">
           jQuery(document).ready(function() {
               $('#countdown_dashboard').countDown({
                   targetDate: {
                       'day':         31,
                       'month':     01,
                       'year':     2013,
                       'hour':     06,
                       'min':         15,
                       'sec':         59                    },
       onComplete: function() { $('#complete_info_message').slideDown() },
       omitWeeks: true
   });
           });
       </script>

 

As you can see, I set the date I want it to count down too, but is there a way I can set it to only begin counting down at a specific time, for example, in x hours time?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/273745-countdown-clock-help/
Share on other sites

  • 2 weeks later...

I've not had any experience with this before, but one thing that I would have tried is to use another countdown that would represent the delay until the time that the real countdown happens. So for onComplete of the first countdown (acting as a timer), start the second countdown..

 

Denno

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.