Javascript

Fermé
ibrahim - 13 mars 2011 à 19:33
 ibrahim - 13 mars 2011 à 19:41
salut je voulais que se programme affiche aussi les jours de 1 a 30 alors s'il vous plais comment je fait????????
<html>
<head>
<script language="javascript">
function date(){
dt=new date();
nj=dt.getday();
m=dt.getmonth()+1;
a.getyear();
document.write(" "+nj+"/"+ds();
m+"/"+a);
}
function heure(){
hr=dt.gethours();
mn=dt.getminutes();
sc=dt.getseconds();
document.write(" "+hr+":"+mn+":"+sc);
}
</script>
</head>
<body>
<center><h3>on est le :</h3><script language="javascript">date();heure()</script>
</centre>
</body>
</html>
merci d'avance =))
A voir également:

2 réponses

swoog42 Messages postés 1059 Date d'inscription mercredi 30 septembre 2009 Statut Membre Dernière intervention 16 décembre 2018 244
13 mars 2011 à 19:36
dt.getDate
0
ou j peut la mettre dt.getdate ??????
0