Le code suivant figure dans l'en-tête du document :

diviseur
<script type="text/javascript">
var theMonth = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
var today = new Date();
function countdown(year, month, day) {
var today_string = theMonth[today.getMonth()] + " " + today.getDate() + ", " + today.getFullYear();
var future_string = theMonth[month - 1] + " " + day + ", " + year;
var difference = (Math.round((Date.parse(future_string) - Date.parse(today_string))/(24*60*60*1000))*1)
return difference;
}
</script>

Le code suivant figure dans le corps du document : 

diviseur
<script type="text/javascript">
var difference = countdown(today.getFullYear(), 4 , 1);
if (difference<0) {difference= difference + 365;}
if (difference==0) { 
	document.write("<div style="text-align:center;"><img src="countdown.png" width="295" height="282" alt="Premier avril"><br>© Philippe Geluck</div>");
	}
	else {
		document.write("Il reste ", difference, " jours avant le premier avril.")
		}
</script>