I keep getting requests and I can’t help but post another JavaScript related counter! As always, in case of any issues/doubts/suggestions or you just want to appreciate, feel free to leave a comment.

Javascript Counter to Count Days Hours Minutes Seconds -

This script is very simple; it takes a date to count the time from/to, an ID to put the timer in. To be very precise, this counter shows the total number of 24 hours intervals between the date-time given and current date-time. It is also possible to have more than one timer on a page. Demo page.

JavaScript Day, Hours, Minutes, Seconds Counter - This works with past as well as future days. If a future date is used, it acts as a countdown timer and when the date is reached it just rolls over and acts as a countup timer.

[code lang=“javascript”] <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> JavaScript Days-Hours-Minutes-Seconds Counter - Praveen Lobo

Contents of this DIV will be replaced by the timer