Categories:

Home / Free JavaScripts / Clocks, Calenders, And Timers / Here

Cut & Paste Live Server Time script (SSI or PHP)

Credit: JavaScript Kit

Description: This unique JavaScript allows you to display the server time of your website, live! Using either SSI or PHP (depending on which one your page supports) to first retrieve the current static server time, the script then updates it every second for display. Cool!

Note that in order to use this script, the page the script is on must either be SSI or php enabled (ie: .shtml or .php). Refer to the comment inside script to uncomment/comment a specific line, depending on the method you're using.

Current server time:

Directions: Simply insert the below into the <body> section of the page that will show the time. Be sure to read the comment on which line to comment and uncomment following it, based on whether your page is SSI or PHP enabled.


JavaScript Tools:
Site Info


CopyRight (c) 2018 JavaScript Kit. NO PART may be reproduced without author's permission. Contact Info