Jump to content

Best way to show the current time?


wmguk

Recommended Posts

If you want a time displayed in the browser that changes colors in real time as the visitor is displaying a web page, you would need to use javascript. There are various javascript clock scripts posted all over the Internet. It would only take a small amount of logic to test the time value and alter the color. If you want the server's time to be used as the reference instead of the visitor's, you would need to output the server's time as the starting value for the javascript to use.

 

Edit: For example - http://www.dynamicdrive.com/dynamicindex6/localtime.htm

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.