
| <SCRIPT>
var colon = '<IMG SRC="digits/colon.gif">'; document.write('<IMG
SRC="digits/0.gif" NAME="h0">'); // create the "digits" array, the
array will hold the location of all the gif digits // use the digit Array elements to create the
digit Image Objects // this function swaps out the respective
digits with the appropriate digits var ampm = (now.getHours() >= 12) ? " pm" : " am"; // if
time.getMinutes() equals 35 then // 35 % 10 = 5 for the 2nd minute digit document.images['h0'].src = digit[Math.floor(now.getHours() / 10)].src document.images['h1'].src = digit[now.getHours() % 10].src document.images['m0'].src = digit[Math.floor(now.getMinutes() / 10)].src document.images['m1'].src = digit[now.getMinutes() % 10].src document.images['s0'].src = digit[Math.floor(now.getSeconds() / 10)].src document.images['s1'].src = digit[now.getSeconds() % 10].src ; document.images['tod'].src = "digits/" + ampm + ".gif"; // wait 1 second
then call the updateClockImage() function } </ SCRIPT><BODY onLoad="upDate();"> |