provided by: 
Originally published at Internet.comScripper...
As if the numbers haven't been through enough, now, let's post them to the text box.
The Script's Effect
-----------------------------------
Here's the Code
The placement part of the function looks like this:
var dateTime = hour; dateTime = ((dateTime <10)? "0":"") + dateTime; dateTime = " " + dateTime; dateTime += ((minute < 10) ? ":0" : ":") + minute; dateTime += ((second < 10) ? ":0" : ":") + second; dateTime += " " + month + " " + date + ", " + year; document.clock.face.value = dateTime; document.clock.locationx.value = zone; setTimeout("checkDateTime()",900); }
We start by setting a new variable, "dateTime," to the hour. Remember that we took a great deal of effort to get that number accurate to the hour in the time zone where it would display. We'll use it to begin figuring out the remainder of the display.
Here's something new to the Script Tips, (?:) See that question mark and colon that pops in there a few times? That's JavaScript shorthand for an If/Else statement. The format is similar to the traditional If/Else. First there's a condition, then there are two items. If the condition is true, the first item is returned. If it is false, the second is returned...
Read article at Internet.com site