HTML cannot do this all by itself. You would need to use either a client-side (JavaScript) or server-side (PHP, Perl, ColdFusion, ASP) programming language to accomplish the task.
If your web server were PHP-enabled (most are), then you name the file with a ".php" at the end instead of ".htm", and in the place where you want to include the timestamp, do something like this...
A server-side solution is always preferable if possible, as you cannot guarantee that the user will have JavaScript enabled in their web browser.
2006-09-09 09:59:52
·
answer #1
·
answered by Anonymous
·
1⤊
0⤋
Complementing the other answers I will add that you can insert the time and/or date into a page in two ways (always using scripts, given that HTML hasn't that option). The first is usign a server-side script. Server side scripts (PHP, ASP, JSP, etc.) are provided by the server where the page is hosted and the time is obtained from the server clock. The other option is to use a client-side script (like Javascript) wich availability depends on the user PC. This kind of scripts are executed in the user's PC and get the time and date from the user clock.
Here is a Javascript code (simplest way) to show date and time:
Todays Date:
2006-09-11 14:10:39
·
answer #2
·
answered by Diegosolo 2
·
0⤊
0⤋
You would need Javascript. So many scripts out there to do this. I found many with this Google search term.
http://www.google.com/search?q=javascript+time
Yahoo Search
http://search.yahoo.com/search?_adv_prop=web&x=op&ei=UTF-8&fr=op&va=javascript+time&va_vt=any&vp_vt=any&vo_vt=any&ve_vt=any&vd=all&vst=0&vf=all&vm=i&fl=0&n=10
Michael D.
SupremeCenterHosting.com
http://www.supremecenterhosting.com
2006-09-09 08:33:39
·
answer #3
·
answered by Michael D 3
·
0⤊
0⤋
Here is an awesome site with lots of pictures for your clock and date, dogs and cats etc...
2006-09-09 08:43:44
·
answer #4
·
answered by joyfulnoize 2
·
0⤊
0⤋
Check the source of
http://www.pekiyi.150m.com
2006-09-09 08:38:12
·
answer #5
·
answered by iyiogrenci 6
·
0⤊
0⤋