Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: irt.org FAQ Knowledge Base Q99

irt.org | About | Feedback | 3995 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q99

Sent by
Michel on July 10, 2002 at 07:30:55:

Comments:
To make a clock change


document.write(timeTillDate(31,12,1999));

to

function clock() {
t = timeTillDate(31,12,1999)
if (document.all) {
document.all('clock').innerHTML= t;
}
else if (document.layers) {
document.layers('clock').document.write(t);
document.layers('clock').document.close();
}
else if (document.getElementById) {
document.getElementById('clock').innerHTML= t;
}
setTimeout('clock()',1000');
}

and have

body onLoad="clock()"

<div id="clock" style="position:absolute">Here you will have a clock</div>

Michel




Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.