The zones of the time zone clock

Set up a time zone clock with javascript.

provided by: 
Originally published at Internet.com


Scripper...

You want a clock? We got a clock!!

I have loved this script since it first arrived at the old JavaGoodies site. It's long, involved, has some code I don't really think is required, but it gets the job done well.

At the moment I have the clock set to post Central Standard Time. I live new New Orleans so that's the time I have posted. You have to make a point of saying which time zone displays first because this script doesn't just post what's displaying in the user's browser. Everything is posted off of Greenwich Mean Time (located near London in the UK).

The script is set up to present ten time zones, the one that first displays and then the nine denoted by the buttons, but after you see how the script works, you can set it to all 24 if you'd like. It's not all that tough.

Stay focused; this is a long one and it tends to jump around a bit. You may want to open the script in a new window when it starts to get a little convoluted.

That said, yonder we go...

The Script's Effect

-----------------------------------

Here's the Code

As you can see, the author has made a point of combining form elements inside of table cells. I don't suggest you ever do that because Netscape Navigator can sometimes be a little picky about the two working together. However, I've tried this script in four different browsers and no errors have come up yet, so I can't complain too loudly...

Read article at Internet.com site
Regional Articles
- The zones of the time zone clock Alabama
- The zones of the time zone clock Alaska
- The zones of the time zone clock Arizona
- The zones of the time zone clock Arkansas
- The zones of the time zone clock California
- The zones of the time zone clock Colorado
- The zones of the time zone clock Connecticut
- The zones of the time zone clock DC
- The zones of the time zone clock Delaware
- The zones of the time zone clock Florida
- The zones of the time zone clock Georgia
- The zones of the time zone clock Hawaii
- The zones of the time zone clock Idaho
- The zones of the time zone clock Illinois
- The zones of the time zone clock Indiana
- The zones of the time zone clock Iowa
- The zones of the time zone clock Kansas
- The zones of the time zone clock Kentucky
- The zones of the time zone clock Louisiana
- The zones of the time zone clock Maine
- The zones of the time zone clock Maryland
- The zones of the time zone clock Massachusetts
- The zones of the time zone clock Michigan
- The zones of the time zone clock Minnesota
- The zones of the time zone clock Mississippi
- The zones of the time zone clock Missouri
- The zones of the time zone clock Montana
- The zones of the time zone clock Nebraska
- The zones of the time zone clock Nevada
- The zones of the time zone clock New Hampshire
- The zones of the time zone clock New Jersey
- The zones of the time zone clock New Mexico
- The zones of the time zone clock New York
- The zones of the time zone clock North Carolina
- The zones of the time zone clock North Dakota
- The zones of the time zone clock Ohio
- The zones of the time zone clock Oklahoma
- The zones of the time zone clock Oregon
- The zones of the time zone clock Pennsylvania
- The zones of the time zone clock Rhode Island
- The zones of the time zone clock South Carolina
- The zones of the time zone clock South Dakota
- The zones of the time zone clock Tennessee
- The zones of the time zone clock Texas
- The zones of the time zone clock Utah
- The zones of the time zone clock Vermont
- The zones of the time zone clock Virginia
- The zones of the time zone clock Washington
- The zones of the time zone clock West Virginia
- The zones of the time zone clock Wisconsin
- The zones of the time zone clock Wyoming

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML