/*
SCRIPT EDITE SUR L’EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
*/
Maintenant = new Date;
TempMaintenant = Maintenant.getTime();
Future = new Date(2009, 8, 30);
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;
}
Untitled Document
document.write(‘Dans ‘ + DiffJour + ‘ jour(s) et ‘ + Diffheure + ‘ heure(s) on part s\’installer à Montréal !’);