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
| <script LANGUAGE="JavaScript">
<!--
function getTime() {
now = new Date();
y2k = new Date("Mar 30 2011 00:00:00"); //date et heure de fin du compte à rebours
days = (y2k - now) / 1000 / 60 / 60 / 24;
daysRound = Math.floor(days);
hours = (y2k - now) / 1000 / 60 / 60 - (24 * daysRound);
hoursRound = Math.floor(hours);
minutes = (y2k - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound);
minutesRound = Math.floor(minutes);
seconds = (y2k - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound);
secondsRound = Math.round(seconds);
sec = (secondsRound == 1) ? " sec" : " sec";
min = (minutesRound == 1) ? " min" : " min, ";
hr = (hoursRound == 1) ? " h" : " h, ";
dy = (daysRound == 1) ? " jour" : " jours, "
document.timeForm.input1.value = "" + daysRound + dy + hoursRound + hr + minutesRound + min + secondsRound + sec + "";
newtime = window.setTimeout("getTime();", 1000);
}
// -->
</script>
<p> encore </p>
<form name=timeForm>
<input type="texte" name=input1 size=25 border-style="none" style="border-bottom: 0px solid; border-left: 0px solid;border-right: 0px solid;border-top: 0px solid;font:1.2em arial, helvetica,sans-serif;background-color:transparent; text-align:center" />
</form>
<p> avant le nouvelle épisode </p> |
Partager