PDA

View Full Version : Universal Countdown Script - Multiple Dates



nosix
11-14-2010, 12:32 AM
1) Script Title: Universal Countdown Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex6/universalcountdown.htm

3) Describe problem: I would like to use Universal Countdown Script on my website but I realized that it does not seem to work for multiple dates and was wondering how I could do something like this:

Time until Mondays meeting: 2 days 11 hours 44 minutes 9 seconds
Time until Mondays meeting: 2 days 11 hours 44 minutes 8 seconds
Time until Mondays meeting: 2 days 11 hours 44 minutes 7 seconds
Time until Mondays meeting: 2 days 11 hours 44 minutes 6 seconds
Time until Mondays meeting: 2 days 11 hours 44 minutes 5 seconds
...
...
...

Then when the timer reached 0 it would get replaced with a new timer which looked like this.

Time until Thursdays meeting: 2 days 23 hours 59 minutes 59 seconds
Time until Thursdays meeting: 2 days 23 hours 59 minutes 58 seconds
Time until Thursdays meeting: 2 days 23 hours 59 minutes 57 seconds
Time until Thursdays meeting: 2 days 23 hours 59 minutes 56 seconds
Time until Thursdays meeting: 2 days 23 hours 59 minutes 55 seconds
...
...
...

and I could setup other dates as well and the script would just loop through them all indefinitely. Is there anyway I can set the script up to do this?

Thanks,
Nosix

Beverleyh
11-14-2010, 09:08 AM
It does work with multiple dates - I've used it for something similar here: http://www.jemcon.org/deadlines.php

Make sure you use unique IDs for each date.