Compte à rebours dans un site web
Fermé
Romain
-
3 avril 2004 à 15:49
mat8883 Messages postés 42 Date d'inscription mercredi 7 octobre 2009 Statut Membre Dernière intervention 26 février 2014 - 19 mars 2012 à 16:07
mat8883 Messages postés 42 Date d'inscription mercredi 7 octobre 2009 Statut Membre Dernière intervention 26 février 2014 - 19 mars 2012 à 16:07
A voir également:
- Compte à rebours html
- Supprimer compte instagram - Guide
- Compte facebook piraté - Guide
- Créer un compte gmail - Guide
- Créer un compte google - Guide
- Se connecter à un autre compte facebook - Guide
30 réponses
RAD ZONE
Messages postés
5224
Date d'inscription
samedi 20 janvier 2007
Statut
Contributeur
Dernière intervention
22 mars 2024
1 353
21 mai 2008 à 23:45
21 mai 2008 à 23:45
SALUT
EN VOILA UN
RAD
EN VOILA UN
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>COMPTE A REBOURS </title> <script LANGUAGE="JavaScript"> <!-- function getTime() { now = new Date(); y2k = new Date("Mar 31 2009 15:00:00"); //ICI LA DATE CIBLE 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) ? " seconde" : " secondes"; min = (minutesRound == 1) ? " minute" : " minutes, "; hr = (hoursRound == 1) ? " heure" : " heures, "; dy = (daysRound == 1) ? " jour" : " jours, " document.timeForm.input1.value = "Encore " + daysRound + dy + hoursRound + hr + minutesRound + min + secondsRound + sec + " avant le 31 Mars 2009 15 H 00 !"; newtime = window.setTimeout("getTime();", 1000); } // --> </script> </head> <body onLoad="getTime()"> <form name=timeForm> <input type="texte" name=input1 size=110 border-style="none" style="border-bottom: 0px solid; border-left: 0px solid;border-right: 0px solid;border-top: 0px solid;font:12px arial, helvetica,sans-serif"> </form> </body> </html>
RAD
19 mars 2012 à 16:07