Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: irt.org FAQ Knowledge Base Q99, July 10, 2002 at 07:30:55:

You are here: 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



©2018 Martin Webb