Re: How to update a clock every second?
| From: | Matt McClanahan | Date: | Sun, 10 Sep 2000 03:17:28 +0000 |
| Subject: | Re: How to update a clock every second? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-16024@lists.php.net to get a copy of this message | ||
On Sat, 9 Sep 2000, Rick Yin wrote:
> I want to update the clock, whose time is taken from
> the server, every second. I checked the "Date and
> time" part of tutorial, don't see a suitable function.
> Experts tell me how to do it. If there's a live one
> out there. please url me.
Since you're talking about updating a web page after it's already been
loaded, little alarms and bells should go off saying "This has to be done
client-side" in your head. :) So, it needs JavaScript.
I know it can be done, because I just did it a few days ago with a
coworker for his website-to-be, but the code that does it has escaped my
head. I can get it from him Monday, but somebody else on the list
probably has it more accessible.
Matt