Salut !
J'ai trouvé un calendrier sympa en javascript sur le net. Seulement je suis ultra débutant dans ce langage et j'aurais besoin d'aide. J'ai ce code :
Et lorsque je change le nom du champ texte ('theDate') le calendrier ne fonctionne plus, quelqu'un peut m'éclairer svp ? J'ai cherché du côté de la fonction mais je n'ai pas trouvé le lien entre les deux et elle est trop longue pour etre postée
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Cross browser javascript calendar</title> <style type="text/css"> body{ /* You can remove these four options */ background-repeat:no-repeat; font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif; margin:0px; } #ad{ padding-top:220px; padding-left:10px; } </style> <link rel="stylesheet" href="dhtmlgoodies_calendar/dhtmlgoodies_calendar.css?random=20051112" media="screen"></LINK> <SCRIPT type="text/javascript" src="dhtmlgoodies_calendar/dhtmlgoodies_calendar.js?random=20060118"></script> </head> <body> <form name='form_tempo_auto' action='func_test.php' method='post'> <p>Click on the "Cal" buttons to see how the calendar works</p> <table> <tr><td>Date input 1(YYYY/MM/DD): </td><td><td><input type="text" value="2004/02/02" readonly name="theDate"><input type="button" value="Cal" onclick="displayCalendar(document.forms[0].theDate,'yyyy/mm/dd',this)"></td></tr> </table> <div id="debug"></div> </body> </html>
Partager