Countdown timer for page

MrVon

New Member
Cant figure out how to make SWF countdown timer applet work, will appreciate anyones help.
Appliet homepage.

I followed instruction, but when comes to HTML code i paste it into <body> tag, but nothing appears.

Also there is warning in IE8, is there any countdown applet that works with IE8 without activex warnings?
 

mrandrei

New Member
Try these codes instead, they work!

<html>
<head>
<title>JavaScript Countdown timer test</title>

<script language="javascript" type="text/javascript">

today = new Date();
todayEpoch = today.getTime();

target = new Date("28 February, 2005");
targetEpoch = target.getTime();

daysLeft = Math.floor(((targetEpoch - todayEpoch) / (60*60*24)) / 1000);
</script>

</head>
<body>

<h1>DoD inspection in

<script>document.write(daysLeft);</script>

days. Are you ready?
</h1>

</body>
 

MrVon

New Member
You see it does not actually count seconds and minutes it just shows you date and i want it to be interactive like clock. Besides it still shows ActiveX warning in IE8.
 
Top