This clock sits on a Web page and continuously displays the correct time (animated), despite the scourges of inaccurate client clock settings and buggy JavaScript implementations. Clicking on the clock toggles the seconds display. The small bit of server-side code is available in ASP and PHP variants. The script calculates the offset between the server clock and client clock at page load time, and from that point on, display the client's clock corrected by that amount. The script uses cookies to store the local and server clocks.
PHP : Scripts and Programs : Clocks
Client-Side Clock
http://www.shearersoftware.com/software/web-tools/clock/
N/A
http://www.shearersoftware.com/software/web-tools/clock/clock-sample.php
N/A
2.1.2
N/A
August 7, 2003
Free
All
Andrew Shearer
php clock, asp clock, JavaScript clock, server clock, server synchronized clock, client side clock, animated clock, php client side clock, asp client side clock, php animated clock, asp animated clock, php live clock, asp live clock
Efficient, continously-updated JS clock with server time
This clock sits on a Web page and continuously displays the correct time (animated), despite the scourges of inaccurate client clock settings and buggy JavaScript implementations. Clicking on the clock toggles the seconds display. The small bit of server-side code is available in ASP and PHP variants. The script calculates the offset between the server clock and client clock at page load time, and from that point on, display the client's clock corrected by that amount. The script uses cookies to store the local and server clocks.
9
7.66
10
1
| Rating | Vote % | # of Votes |
|---|---|---|
| 10 | 56% | 5 |
| 9 | 11% | 1 |
| 8 | 11% | 1 |
| 7 | 0% | 0 |
| 6 | 0% | 0 |
| 5 | 0% | 0 |
| 4 | 0% | 0 |
| 3 | 0% | 0 |
| 2 | 0% | 0 |
| 1 | 22% | 2 |
Want to increase the number of votes and resource rating for this listing?
Place a Client-Side Clock Vote Box on your website.