1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| <html>
<head>
<SCRIPT LANGUAGE="JavaScript">
function startclock()
{
Maintenant = new Date;
TempMaintenant = Maintenant.getTime();
Future = new Date(2008, 0, 01);
TempFuture = Future.getTime();
DiffSec = Math.floor((TempFuture-TempMaintenant)/1000);
DiffMin = Math.floor(DiffSec/60);
Diffheure = Math.floor(DiffMin/60);
DiffJour = Math.floor(Diffheure/24);
while (DiffMin>=60)
{
DiffMin = DiffMin-60;
}
while (Diffheure>=24)
{
Diffheure = Diffheure-24;
}
while (DiffSec>=60)
{
DiffSec = DiffSec-60;
}
document.write(DiffJour + ' days(s), ' + Diffheure + ' hour(s), ' + DiffMin + ' minute(s) and ' + DiffSec + ' seconde(s)');
setTimeout('startclock()',1000);
}
</SCRIPT>
</HEAD>
<BODY onLoad="startclock()">
Days left until Syspro goes live !<br>
</FORM>
</BODY> |
Partager