toolman Posted January 28, 2013 Share Posted January 28, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/273745-countdown-clock-help/ Share on other sites More sharing options...
denno020 Posted February 9, 2013 Share Posted February 9, 2013 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 Quote Link to comment https://forums.phpfreaks.com/topic/273745-countdown-clock-help/#findComment-1411405 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.