function date() {
var DD = new Date();
var PD = new Array();
PD['hour'] = DD.getHours();
PD['minute'] = DD.getMinutes();
PD['second'] = DD.getSeconds();
return PD;
}
var aKey = 'http://www.traci.de/javascript/uhr/';
var ImageOn = new Array()
for (p=0; p<10; p++) {
ImageOn[p] = new Image();
ImageOn[p].src = aKey + p + '.gif';
}
document.write('<table><tr><td nowrap><a href="http://www.traci.de/" target="_blank"><image name=hour border=0 height=20 width=15><image name=hours border=0 height=20 width=15><image src="'+aKey+'colon.gif" border=0 height=20 width=8><image name=six border=0 height=20 width=15><image name=ten border=0 height=20 width=15><image src="'+aKey+'colon.gif" border=0 height=20 width=8><image name=sixes border=0 height=20 width=15><image name=tens border=0 height=20 width=15></a></td></tr></table>');
function clock() {
var time = date();
document.images['hour'].src = aKey + (Math.floor(time['hour']/10)) + '.gif';
document.images['hours'].src = aKey + (time['hour'] % 10) + '.gif';
document.images['six'].src = aKey + (Math.floor(time['minute'] / 10)) + '.gif';
document.images['ten'].src = aKey + (time['minute'] % 10) + '.gif';
document.images['sixes'].src = aKey + (Math.floor(time['second'] / 10)) + '.gif';
document.images['tens'].src = aKey + (time['second'] % 10) + '.gif';
var roll = setTimeout("clock()",1000);
}
clock();

