charles communicateur
Nombre de messages : 93 Age : 52 Localisation : fr Date d'inscription : 26/07/2005
| Sujet: conception calendrier 2007 Jeu 23 Nov - 16:20 | |
| Conception du calendrier 2007 voici le calendrier numerique 2007 (script LANGUAGE="JavaScript") - Citation :
- <HTML><HEAD>
<TITLE>Edition 2007</TITLE> </HEAD> </HTML> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="GENERATOR" content="Mozilla/4.73 (Macintosh; U; PPC) [Netscape]"> <title>Edition 2007</title> <script LANGUAGE="JavaScript"><!-- // Ici on dªclare les dates des jours fªriªs fixes var ferie=new Array("01/01","25/03","01/05","08/05","21/05","25/05","14/07","15/08","01/11","11/11","25/12"); var mois=new Array("Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre");
function disp(txt) { document.write(txt) } function estFerie(j,m) { var nb=ferie.length; var test=false; for(var i=0;i<nb;i++) { if ((ferie[i].substring(0,2)==j)&&(ferie[i].substring(3,5)==m)) return true; } return false; } function calendar(m, a) { var d_jour=new Date(); var d=new Date(a,m-1,1); var dfin=new Date(a,m-1,1); var nb_jour=31; var aff_j=""; for(var k=32;k>27;k--) { dfin.setMonth(m-1); dfin.setDate(k); if (dfin.getMonth()!=m-1) {nb_jour=k-1;} }
var j1=d.getDay(); if (j1==0) j1=7; var jour=0; disp("<FONT FACE='Folio'color='#FFFFFF' size='2'><CENTER><B>"+mois[d.getMonth()]+" "+a+"</B></CENTER></FONT>"); disp("<TABLE border= 0 cellspacing=8 cellpadding='2'>"); disp("<TR align='center' bgcolor='#000000'><TD width='10'>L</TD><TD width='10'>M</TD><TD width='10'>M</TD><TD width='10'>J</TD><TD width='10'>V</TD><TD width='10'>S</TD><TD width='10'>D</TD></TR>"); for(var i=0;i<6;i++) { disp("<TR>"); for (j=0;j<7;j++) { jour=7*i+j-j1+2; aff_j=jour; if ((jour==d_jour.getDate())&&(m==d_jour.getMonth()+1)) {aff_j="<FONT size='8' color='#FFFFFF' face='folio'><B>"+jour+"</B></FONT>";} if ((7*i+j>=j1-1)&&(jour<=nb_jour)) { if ((j==6)||(estFerie(jour,m))) disp("<TD width='10' bgcolor='#339900' align='center'><FONT face='Arial' size='2' color='#FFFFFF'>"+aff_j+"</FONT></TD>"); else disp("<TD width='10' align='center'><FONT face='Arial' size='2' color='#339900'>"+aff_j+"</FONT></TD>"); } else disp("<TD width='10'><FONT size=1> </TD>");
} disp("</TR>"); } disp("</TABLE>"); } function annee(an) { disp("<TABLE cellspacing=15>"); for (var i=0;i<3;i++) { disp("<TR>"); for (var j=0;j<4;j++) { disp("<TD align='center'>"); calendar(i*4+j+1,an); disp("</TD>"); } } disp("</TABLE>"); } //--> </script> <!-- DEBUT DU SCRIPT HEURE GRAPHIQUE --> <!-- <script LANGUAGE="JavaScript"> i0 = new Image; i1 = new Image; i2 = new Image; i3 = new Image; i4 = new Image; i5 = new Image; i6 = new Image; i7 = new Image; i8 = new Image; i9 = new Image; imgSrc = new Array; imgSrc[0] = 'images/h0.gif'; imgSrc[1] = 'images/h1.gif'; imgSrc[2] = 'images/h2.gif'; imgSrc[3] = 'images/h3.gif'; imgSrc[4] = 'images/h4.gif'; imgSrc[5] = 'images/h5.gif'; imgSrc[6] = 'images/h6.gif'; imgSrc[7] = 'images/h7.gif'; imgSrc[8] = 'images/h8.gif'; imgSrc[9] = 'images/h9.gif'; i0.src = imgSrc[0]; i1.src = imgSrc[1]; i2.src = imgSrc[2]; i3.src = imgSrc[3]; i4.src = imgSrc[4]; i5.src = imgSrc[5]; i6.src = imgSrc[6]; i7.src = imgSrc[7]; i8.src = imgSrc[8]; i9.src = imgSrc[9]; function HeureCheck() { krucial = new Date; heure = krucial.getHours(); min = krucial.getMinutes(); sec = krucial.getSeconds(); jour = krucial.getDate(); mois = krucial.getMonth()+1; annee = krucial.getFullYear(); if (sec < 10) { sec0 = "0"; } else { sec0 = ""; } if (min < 10) { min0 = "0"; } else { min0 = ""; } if (heure < 10) { heure0 = "0"; } else { heure0 = ""; } if (mois < 10) { mois0 = "0"; } else { mois0 = ""; } if (jour < 10) { jour0 = "0"; } else { jour0 = ""; } if (annee < 10) { annee0 = "0"; } else { annee0 = ""; } DinaDate = "" + jour0 + jour + mois0 + mois + annee0 + annee; DinaHeure = heure0 + heure + min0 + min + sec0 + sec; char1h = DinaHeure.charAt(0); document.heure1.src = imgSrc[char1h]; char2h = DinaHeure.charAt(1); document.heure2.src = imgSrc[char2h]; char1m = DinaHeure.charAt(2); document.min1.src = imgSrc[char1m]; char2m = DinaHeure.charAt(3); document.min2.src = imgSrc[char2m]; char1s = DinaHeure.charAt(4); document.sec1.src = imgSrc[char1s]; char2s = DinaHeure.charAt(5); document.sec2.src = imgSrc[char2s]; char1h = DinaDate.charAt(0); document.jour1.src = imgSrc[char1h]; char2h = DinaDate.charAt(1); document.jour2.src = imgSrc[char2h]; char1m = DinaDate.charAt(2); document.mois1.src = imgSrc[char1m]; char2m = DinaDate.charAt(3); document.mois2.src = imgSrc[char2m]; char1s = DinaDate.charAt(4); document.annee1.src = imgSrc[char1s]; char2s = DinaDate.charAt(5); document.annee2.src = imgSrc[char2s]; char3s = DinaDate.charAt(6); document.annee3.src = imgSrc[char3s]; char4s = DinaDate.charAt(7); document.annee4.src = imgSrc[char4s];tempo = setTimeout("HeureCheck()", 1000) } </SCRIPT> //--> <!-- FIN DU SCRIPT HEURE GRAPHIQUE--> <script src="dateheure.js"></script> <script LANGUAGE="Javascript"> <!-- //HeureCheck(); //onLoad="goforit()"; goforit(); //onUnload="clearTimeout(tempo)"; //--> </script> </head> <body text="#999999" bgcolor="#000000" link="#26FF2A" vlink="#C9D1D1" alink="#0000FF" background="#FFFFFF">
<dt> <font size=-2></font></dt>
<center><table CELLSPACING=0 CELLPADDING=0 > <tr> <center><form name="form"><input type="button" value="heure" name=button></form><script type="text/javascript"> init=new Date(); hri=init.getHours(); mni=init.getMinutes(); sci=init.getSeconds(); mii=init.getTime(); function clock() { hre=new Date(); hr=hre.getHours(); if (hr<10) hr="0"+hr mn=hre.getMinutes(); if (mn<10) mn="0"+mn sc=hre.getSeconds(); if (sc<10) sc="0"+sc time=hr+" h "+mn+" mn "+sc; document.form.button.value=time; setTimeout('clock()', 1000);} onError = null; clock(); </script> <tr> <td BGCOLOR="#212121" BACKGROUND="..."> <center> <hr WIDTH="100%"><b><font color="#FFFFFF">Bonne Annee 2007</font></b> <hr WIDTH="100%"> <br><span id="clock"></span><script LANGUAGE="JavaScript"> <!-- // placer ci-dessous l'annªe du calendrier que vous souhaitez affichª annee(2007); //--> </script> </center> </td> </tr></b> </table></center> <script language='javascript'>document.write('<img src="http://monsite.voila.fr/servlets/istat?site=artpropos&page=/CC2006.html&outil=ftpweb&n=' + Math.round(Math.random()*100000) + '" width=1 height=1>'); </script> <script language='javascript'>document.write('<img src="http://e.voila.fr/cgi-bin/ft/10000033638?&page=artpropos_CC2006.html&n=' + Math.round(Math.random()*100000) + '" width=1 height=1>');</script></body> </html>
| |
|
charles communicateur
Nombre de messages : 93 Age : 52 Localisation : fr Date d'inscription : 26/07/2005
| Sujet: fond de calendrier Sam 25 Nov - 22:24 | |
| voici un fond de calendrier clique image pour voir le calendrier 2007 | |
|