This is a discussion on Clock on a webpage that syncs with the Atomic clock. within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; Hi all... Can anyone tell me how can I have a clock on a webpage that syncs with the Atomic ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi all... <script language="JavaScript"> function showTime() { if (!document.images) return; now = new Date(); document.images["theTime"].src = 'http://tycho.usno.navy.mil/cgi-bin/xbmclock.xbm?zone=GMT&'+ now.getTime(); setTimeout('showTime()',60000); // update once a minute or they will be cross... } </script> <img name="theTime" src="http://tycho.usno.navy.mil/cgi-bin/xbmclock.xbm?zone=GMT" width=192 height=28> Thanks... |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Setup a clock with defined alarm times which trigger another event | itbarota | HTML, CSS and Javascript Coding Techniques | 1 | 03-04-2008 09:57 PM |
| What is a computer's clock speed? | itbarota | Computer Hardware | 4 | 01-07-2008 08:58 PM |
| Flash Analog Clock | aramesh | Flash Actionscript Programming | 0 | 12-12-2007 10:57 PM |
| How do I write a clock program in JavaScript? | itbarota | HTML, CSS and Javascript Coding Techniques | 2 | 10-12-2007 10:55 PM |
| How to create a Analog style Scroll clock? | bluesky | HTML, CSS and Javascript Coding Techniques | 1 | 07-22-2007 11:55 PM |