var date_statement="";//récupération de la date, du jour, de l'heure
var time_statement="";
var today=new Date();
var month="";
var day="";
function todays_date() {
var month=today.getMonth();
var day_of_week=today.getDay();
date_statement=""
document.month=""
month++;
if(month==1) {//définition des mois: 1=janvier, 2=février, ...
january(today.getDate());
document.month="Janvier";
}
if(month==2) {
february(today.getDate());
document.month="Février";
}
if(month==3) {
march(today.getDate());
document.month="Mars";
}
if(month==4) {
april(today.getDate());
document.month="Avril";
}
if(month==5) {
may(today.getDate());
document.month="Mai";
}
if(month==6) {
june(today.getDate());
document.month="Juin";
}
if(month==7) {
july(today.getDate());
document.month="Juillet";
}
if(month==8) {
august(today.getDate());
document.month="Août";
}
if(month==9) {
september(today.getDate());
document.month="Septembre";
}
if(month==10) {
october(today.getDate());
document.month="Octobre";
}
if(month==11) {
november(today.getDate());
document.month="Novembre";
}
if(month==12) {
december(today.getDate());
document.month="Décembre";
}
document.day=""//définition des jours: 1=lundi etc...
if(day_of_week==0)
document.day="Dimanche";
if(day_of_week==1)
document.day="Lundi";
if(day_of_week==2)
document.day="Mardi";
if(day_of_week==3)
document.day="Mercredi";
if(day_of_week==4)
document.day="Jeudi";
if(day_of_week==5)
document.day="Vendredi";
if(day_of_week==6)
document.day="Samedi";
}
function january(date) {
if(date==1)//si le jour =1 (cad: 1 janvier)
date_statement="Bonne Année !";//commentaire à ajouter entre les deux guillemets
}
function february(date) {
}
function march(date) {
}
function march(date) {
if(date==21)
date_statement="C'est le printemps !";
}
function april(date) {
if(date==1)
date_statement="poisson d'avril !";
}
function may(date) {
if(date==17)
date_statement="C'est mon anniversaire!!!";
}
function june(date) {
if(date==21)
date_statement="Vive l'été !";
}
function july(date) {
}
function august(date) {
}
function september(date) {
if(date==21)
date_statement="C'est l'automne !";
}
function october(date) {
if(date==31)
date_statement="Joyeux Halloween !";
}
function november(date) {
}
function december(date) {
if(date==21)
date_statement+="C'est l'hiver !";
if(date==25)
date_statement="Joyeux Noël !";
if(date==31)
date_statement="C'est fou ce que les années passent vites !";
}
function date()
{

var today=new Date();
var date_heure="";
h = today.getHours();
m = today.getMinutes();
s = today.getSeconds();


        if(h<10)
   { h = '0'+h; }
        if(m<10)
   { m = '0'+m; }
        if(s<10)
   { s = '0'+s; }
date_heure = ''+h+'h'+m+'m'+s+'';

document.getElementById('d').innerHTML = date_heure;
}
setInterval("date()",1000);