Fadile Chouchou de la maîtresse
Nombre de messages : 228 Age : 31 Localisation : Paris Date d'inscription : 15/01/2005
| Sujet: code Mer 13 Avr à 18:54 | |
| Voila un code pour une Horloge qu'en pense tu ? - Code:
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <style type="text/css"> <!-- .Style1 {color: #FFFFFF} --> </style> <SCRIPT LANGUAGE="JavaScript"> navvers = navigator.appVersion.substring(0,1); if (navvers > 3) navok = true; else navok = false;
today = new Date; numero = today.getDate(); if (numero<10) numero = "0"+numero; mois = today.getMonth(); if (navok) annee = today.getFullYear(); else annee = today.getYear(); mois++; if (mois < 10) mois = "0" + mois; messageDate = numero + "/" + mois + "/" + annee; 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 = ""; DinaHeure = heure0 + heure + ":" + min0 + min + ":" + sec0 + sec; which = DinaHeure if (document.all){ dynamic3.innerHTML='<center>00:00:00</center>' dynamic3.innerHTML='<FONT SIZE=1 FACE=" Arial"><B>'+which+'</B></FONT>'; } else if (document.layers){ document.dynamic1.document.dynamic2.document.write(''+which+'') document.dynamic1.document.dynamic2.document.close() } tempo = setTimeout("HeureCheck()", 1000) } </SCRIPT> </head> <body onLoad="HeureCheck()" onUnload="clearTimeout(tempo)">
<table border="0" cellspacing="0" cellpadding="0" width="50" height="50"> <tr> <td bgcolor="#F2C65C" style="border: 2 solid #282128 " > <table summary="" border="0" width="100%" height="100%"> <tr> <!-- couleur fond et text --> <td background="image de fond de l'horloge"><CENTER class="Style1"> <!-- fin couleur fond et text --> <FONT SIZE=2 FACE="arial"><B> <SCRIPT LANGUAGE="JavaScript"> document.write(messageDate); </SCRIPT> </B></FONT> <a href="http://calvofamily.forumactif.com" target="_blank"> <!-- images ici --> </a> <a target="_blank" title="Horloge Forum Calvo Family" href="http://calvofamily.forumactif.com"> <img src="url de l'image de l'horloge" width="86" height="86"> </a><a href="http://calvofamily.forumactif.com" target="_blank"> <!-- fin images ici --> </a> <ilayer id="dynamic1" width=100% height=15> <layer id="dynamic2" width=100% height=15> <div id="dynamic3"></div> </layer> </ilayer> </CENTER> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Horloge</title> </head>
<body> <div align="center"></div> </body> </html> | |
|
Nathalie Admin
Nombre de messages : 458 Localisation : Marseille Date d'inscription : 10/10/2004
| Sujet: Re: code Mer 13 Avr à 20:07 | |
| Il a l'air de bien marcher...
Il ne manque que les images ... | |
|
Fadile Chouchou de la maîtresse
Nombre de messages : 228 Age : 31 Localisation : Paris Date d'inscription : 15/01/2005
| Sujet: Re: code Mer 13 Avr à 20:51 | |
| sur le code comme je l'ai fait de façon a ce qu'il soit a peut près vide j'ai enlever les images a la place il y a image de fond ou url de l'image | |
|
Fadile Chouchou de la maîtresse
Nombre de messages : 228 Age : 31 Localisation : Paris Date d'inscription : 15/01/2005
| Sujet: Re: code Ven 15 Avr à 13:46 | |
| - Code:
-
<html> <head> <title>Horloge 8</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
function HorlogeDynamique() { var DateActuel = new Date(); var heure = DateActuel.getHours(); var minutes = DateActuel.getMinutes(); var secondes = DateActuel.getSeconds();
if (heure <= 9) { heure = "0" + heure; } if (minutes <= 9) { minutes = "0" + minutes; } if (secondes <= 9) { secondes = "0" + secondes; } Horloge = heure + ":" + minutes + ":" + secondes;
if (document.getElementById) { document.getElementById("clock").innerHTML = Horloge; }
if (document.layers) { document.clock.document.write("<br> "+Horloge); document.clock.document.close(); }
if ((document.all)&&(!document.getElementById)) { document.all["clock"].innerHTML = Horloge; }
setTimeout("HorlogeDynamique()", 1000) } window.onload = HorlogeDynamique;
</script> <script type="text/javascript"> <!-- function cejour() { var maintenant = new Date(); var jour = maintenant.getDate(); var mois = maintenant.getMonth() + 1; var an = maintenant.getYear(); if(an < 999) an += 1900; var jourprec = ((jour < 10) ? "0" : ""); var moisprec = ((mois < 10) ? ".0" : "."); var date = jourprec + jour + moisprec + mois + "." + an; document.write( date) } //--> </script> <style type="text/css"> <!-- a { color: #000000; text-decoration: underline} a:hover {color: #F2861A; text-decoration: none; background-color: transparent; position: relative; top: 1.5px; left: 1.5px;} -->
A:link{
color:#4D3835;
text-decoration:none;
};
A:visited{
color:#4D3835;
text-decoration:none;
};
A:hover{
color:#FFFFFF;
text-decoration: ;
};
A:active{
color:#C0C0C0;
text-decoration:none;
};
</style> </head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" text="#4D3835"> <table width="100" border="0" cellspacing="0" cellpadding="0" align="center" background="http://www.creativelegend.com/horloge/fond9.gif" height="150"> <tr> <td height="25" align="center" valign="middle"><font size="2"> <script type="text/javascript"> <!-- cejour(); //--> </script>
</font></td> </tr> <tr> <td height="100" valign="top" align="center"> </td> </tr> <tr> <td height="25" align="center" valign="middle"> <font size="2"> <a href="http://www.creativelegend.com/" alt="Cette horloge sur votre site" target="_blank"> <div id=clock style="position:relative;"></div></a> </font> </td> </tr> </table>
</body> </html> Voila un nouveau code pas mal
Dernière édition par le Sam 16 Avr à 12:08, édité 2 fois | |
|
Nathalie Admin
Nombre de messages : 458 Localisation : Marseille Date d'inscription : 10/10/2004
| Sujet: Re: code Ven 15 Avr à 14:01 | |
| Je ne peux pas la voir..
Pour l'adresse de l'image tu as mis une url relative (dans ton dossier) alors qu'il faudrait mettre l'url complète : http://www.blabla/ton dossier etc ... | |
|
Fadile Chouchou de la maîtresse
Nombre de messages : 228 Age : 31 Localisation : Paris Date d'inscription : 15/01/2005
| Sujet: Re: code Ven 15 Avr à 14:12 | |
| pour le voir : http://www.creativelegend.com/horloge/horloge9.php | |
|
Fadile Chouchou de la maîtresse
Nombre de messages : 228 Age : 31 Localisation : Paris Date d'inscription : 15/01/2005
| Sujet: Re: code Ven 15 Avr à 14:13 | |
| c'est bon j'ai retrouver l'url de l'image donc c'est modifier | |
|
Fadile Chouchou de la maîtresse
Nombre de messages : 228 Age : 31 Localisation : Paris Date d'inscription : 15/01/2005
| Sujet: Re: code Dim 17 Avr à 11:35 | |
| Voila si tu veut faire des calandrier j'ai trouver ce code qui est celui de mon calandrier - Code:
-
<title>calendrier 61</title> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" text="#FFFFFF"><table width="219" border="0" cellspacing="0" cellpadding="0" height="150" background="http://creativelegend.free.fr/calendrier/cal61.jpg"> <tr> <td height="20" width="108"></td> <td height="20" width="111"></td> </tr> <tr> <td height="110" align="center" valign="middle" width="108"> <script language="JavaScript">
monthnames = new Array( "Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Aout", "Septembre", "Octobre", "Novembre", "Décembre"); var linkcount=0; function addlink(month, day, href) { var entry = new Array(3); entry[0] = month; entry[1] = day; entry[2] = href; this[linkcount++] = entry; } Array.prototype.addlink = addlink; linkdays = new Array(); monthdays = new Array(12); monthdays[0]=31; monthdays[1]=28; monthdays[2]=31; monthdays[3]=30; monthdays[4]=31; monthdays[5]=30; monthdays[6]=31; monthdays[7]=31; monthdays[8]=30; monthdays[9]=31; monthdays[10]=30; monthdays[11]=31; todayDate=new Date(); thisday=todayDate.getDay(); thismonth=todayDate.getMonth(); thisdate=todayDate.getDate(); thisyear=todayDate.getYear(); thisyear = thisyear % 100; thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear)); if (((thisyear % 4 == 0) && !(thisyear % 100 == 0)) ||(thisyear % 400 == 0)) monthdays[1]++; startspaces=thisdate; while (startspaces > 7) startspaces-=7; startspaces = thisday - startspaces + 1; if (startspaces < 0) startspaces+=7; document.write("<FONT face='tahoma'>");<!--Font Face--> document.write("<table border=0 " );<!--Border size--> document.write("style='font-size : 9.5px; color : #808080;' cellpadding=0 cellspacing=1>");<!--Border color, font size, cell padding, cellspacing and font color-->
document.write("<tr><td colspan=7><center>" + monthnames[thismonth] + " " + thisyear + "</center></td></tr>"); document.write("<tr>"); document.write("<td align=center><font color=#ffffff>D</td>");<!--The color here and below are for each week day--> document.write("<td align=center><font color=#ffffff>L</td>"); document.write("<td align=center><font color=#ffffff>M</td>") document.write("<td align=center><font color=#ffffff>M</td>"); document.write("<td align=center><font color=#ffffff>J</td>"); document.write("<td align=center><font color=#ffffff>V</td>"); document.write("<td align=center><font color=#ffffff>S</td>");<!--Last color chage here--> document.write("</tr>"); document.write("<tr>"); for (s=0;s<startspaces;s++) { document.write("<td>-</td>"); } count=1; while (count <= monthdays[thismonth]) { for (b = startspaces;b<7;b++) { linktrue=false; document.write("<td>"); for (c=0;c<linkdays.length;c++) { if (linkdays[c] != null) { if ((linkdays[c][0]==thismonth + 1) && (linkdays[c][1]==count)) { document.write("<a href=\"" + linkdays[c][2] + "\">"); linktrue=true; } } } if (count==thisdate) { document.write("<font color='#ffffff'>");<!--todays date color--> } if (count <= monthdays[thismonth]) { document.write(count); } else { document.write(" "); } if (count==thisdate) { document.write("</font>"); } if (linktrue) document.write("</a>"); document.write("</td>"); count++; } document.write("</tr>"); document.write("<tr>"); startspaces=0; } document.write("</table>"); document.write("</FONT>"); </script></td> <td height="110" width="111"></td> </tr> <tr> <td width="108" height="20"></td> <td width="111" height="20"></td> </tr> </table> </body> </html> si tu ne peut pas le voir voici l'url http://creativelegend.free.fr/calendrier/calendrier_61.php | |
|
Nathalie Admin
Nombre de messages : 458 Localisation : Marseille Date d'inscription : 10/10/2004
| Sujet: Re: code Dim 17 Avr à 14:21 | |
| Merci c'est sympa .... J'en avais un autre, je vais les comparer pour voir ... | |
|
Fadile Chouchou de la maîtresse
Nombre de messages : 228 Age : 31 Localisation : Paris Date d'inscription : 15/01/2005
| Sujet: Re: code Dim 17 Avr à 15:11 | |
| ok | |
|