Copy
this code into your head ( <head>Insert in between here</head> )
<script
language="JavaScript">
var
Temp2;
var
timerID = null;
var
timerRunning = false;
function
showtime() {
now
= new Date();
var
CurHour = now.getHours();
var
CurMinute = now.getMinutes();
var
CurMonth = now.getMonth();
var
CurDate = now.getDate();
var
CurYear = now.getYear();
var
CurSecond = now.getSeconds();
now
= null;
Hourleft
= 23 - CurHour
Minuteleft
= 59 - CurMinute
Secondleft
= 59 - CurSecond
var
Yearleft = 99 - CurYear
var
Monthleft = 11 - CurMonth
var
Dateleft = 31 - CurDate
if
(Yearleft!=1) {var ys="s"} else {var ys=""};
if
(Monthleft!=1) {var mos="s"} else {var mos=""}
if
(Dateleft!=1) {var ds="s"} else {var ds=""}
if
(Hourleft!=1) {var hs="s"} else {var hs=""}
if
(Minuteleft!=1) {var mis="s"} else {var mis=""}
if
(Secondleft!=1) {var ss="s"} else {var ss=""}
Temp2='Still
'+Yearleft+' year'+ys+', '+Monthleft+' month'+mos+', '+Dateleft+' day'+ds+',
'+Hourleft+' hour'+hs+', '+Minuteleft+' minute'+mis+', '+Secondleft+' second'+ss+'
left until the year 2000! '
Temp3=Yearleft+'
year'+ys+', '+Monthleft+' month'+mos+', '+Dateleft+' day'+ds+', '+Hourleft+'
hour'+hs+', '+Minuteleft+' minute'+mis+', '+Secondleft+' second'+ss
window.status=Temp2;
document.frm.left.value=Temp3;
timerID
= setTimeout("showtime()",1000);
timerRunning
= true;
}
var
timerID = null;
var
timerRunning = false;
function
stopclock () {
if(timerRunning)
clearTimeout(timerID);
timerRunning
= false;
}
function
startclock () {
stopclock();
showtime();
}
</script>
</script>
Now
put this inside your body code.
<body
onLoad="startclock()">
An
example is:
<BODY
BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080"onLoad="startclock()">
or
<body
onLoad="startclock()">
Now
put this where ever you want in your HTML document
<form
name="frm">
<input
type="textarea" name="left" size=60>
|