Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.