Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > JavaScript
JavaScript Forum programmation JavaScript. Lire : Cours JavaScript, FAQ JavaScript, Toutes les FAQ JavaScript et Sources JavaScript
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 28/12/2011, 14h01   #1
Invité de passage
 
Inscription : septembre 2009
Messages : 94
Détails du profil
Informations forums :
Inscription : septembre 2009
Messages : 94
Points : 1
Points : 1
Par défaut Meteo ne fonctionne pas

Bonjour à tous,

Je dois reprendre un site dans laequelle le module météo ne fonctionne pas...

Voici le code :

Code :
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
 
 
<!-- METEO -->
 
<link rel="stylesheet" type="text/css" href="modules/meteo/css/slide.css" />
 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="modules/meteo/js/slide.js"></script>
 
 
<div id="fond">
	<a name="meteo"></a>
  <div id="gallery">
    <div id="slides">
 
        <div class="slide">
						<table border="0px" cellpadding="0" cellspacing="0" width="650px">
						  <tr>
							 <td valign="top" align="center" width="80px"><img src="modules/meteo/images/meteo/.png" width="82" border="0" alt="" /><span class="textBlack2"><br /><br /></span></ td>
							 <td valign="top" align="left" width="10px"></ td>
							 <td valign="top" align="left" width="560px">
								<table border="0px" cellpadding="0" cellspacing="0" width="530">
								   <tr>
									  <td valign="top" align="left" width="530px">
 
									  <br />
									  <div style="color:#929292; margin-top:-13px;">
									  28 Dec<br /><br />
									  Florence									  <br />
									  -18&ordm;C									  </div></ td>
								   </tr>
 
								</table>
 
							 </ td>
						  </tr>
 
					    </table>
	</div>
		    <div class="slide">
						<table border="0px" cellpadding="0" cellspacing="0" width="650px">
						  <tr>
							 <td valign="top" align="center" width="80px"><span class="textBlack1"><img src="modules/meteo/images/meteo/.png" width="82" border="0px" alt=""/><br />
							 </ td>
 
							 <td valign="top" align="left" width="10px"></ td>
							 <td valign="top" align="left" width="560px">
								<table border="0" cellpadding="0" cellspacing="0" width="530px">
								   <tr>
									  <td valign="top" align="left" width="530px">
									  <br />
									  <div style="color:#929292; margin-top:-13px;">
									  29 Dec<br /><br />
 
									  Florence									  <br />
									  -18&ordm;C									  </div></ td>
								   </tr>
 
								</table>
							 </ td>
						  </tr>
						</table>
 
	</div>
	    <div class="slide">
						<table border="0px" cellpadding="0" cellspacing="0" width="650px">
						  <tr>
							 <td valign="top" align="center" width="80px"><span class="textBlack1"><img src="modules/meteo/images/meteo/.png" width="82" border="0px" alt=""/><br />
							 </ td>
							 <td valign="top" align="left" width="10px"></ td>
							 <td valign="top" align="left" width="560px">
								<table border="0" cellpadding="0" cellspacing="0" width="530px">
 
								   <tr>
									  <td valign="top" align="left" width="530px">
									  <br />
									  <div style="color:#929292; margin-top:-13px;">
									  30 Dec<br /><br />
									  Florence									  <br />
									  -18&ordm;C									  </div></ td>
 
								   </tr>
 
								</table>
							 </ td>
						  </tr>
						</table>
	</div>
	    <div class="slide">
						<table border="0px" cellpadding="0" cellspacing="0" width="650px">
						  <tr>
 
							 <td valign="top" align="center" width="80px"><span class="textBlack1"><img src="modules/meteo/images/meteo/.png" width="82" border="0px" alt=""/><br />
							 </ td>
							 <td valign="top" align="left" width="10px"></ td>
							 <td valign="top" align="left" width="560px">
								<table border="0" cellpadding="0" cellspacing="0" width="530px">
								   <tr>
									  <td valign="top" align="left" width="530px">
									  <br />
									  <div style="color:#929292; margin-top:-13px;">
 
									  31 Dec<br /><br />
									  Florence									  <br />
									  -18&ordm;C									  </div></ td>
								   </tr>
 
								</table>
							 </ td>
						  </tr>
 
						</table>
	</div>
	    <div class="slide">
						<table border="0px" cellpadding="0" cellspacing="0" width="650px">
						  <tr>
							 <td valign="top" align="center" width="80px"><span class="textBlack1"><img src="modules/meteo/images/meteo/.png" width="82" border="0px" alt=""/><br />
							 </ td>
							 <td valign="top" align="left" width="10px"></ td>
							 <td valign="top" align="left" width="560px">
 
								<table border="0" cellpadding="0" cellspacing="0" width="530px">
								   <tr>
									  <td valign="top" align="left" width="530px">
									  <br />
									  <div style="color:#929292; margin-top:-13px;">
									  01 Jan<br /><br />
									  Florence									  <br />
									  -18&ordm;C									  </div></ td>
 
								   </tr>
 
								</table>
							 </ td>
						  </tr>
						</table>
	</div>
 
    </div>
    <div id="menu">
 
    <ul>
 
        <li class="fbar">&nbsp;</li>
				<li class="menuItem"><a href="">28 Dec</a></li>
						<li class="menuItem"><a href="">29 Dec</a></li>
				<li class="menuItem"><a href="">30 Dec</a></li>
				<li class="menuItem"><a href="">31 Dec</a></li>
				<li class="menuItem"><a href="">01 Jan</a></li>
 
		    </ul>
 
 
    </div>
 
  </div>
 
  <div id="meteo-listing">
 
<a href="javascript:;" onMouseOut="clearTimeout(timer);" onMouseOver="move_up()"><img src="modules/meteo/images/meteo-listing-up.png" alt="" /></a>
 
<div id="meteo_listing_scroll">
	<div class="listing"><span><a href="index.php?ville=NLXX0002&nom=Amsterdam#meteo">Amsterdam</a></span></div>
	<div class="listing"><span><a href="index.php?ville=SPXX0015&nom=Barcelone#meteo">Barcelone</a></span></div>
 
	<div class="listing"><span><a href="index.php?ville=NLXX0002&nom=Berlin#meteo">Berlin</a></span></div>
	<div class="listing"><span><a href="index.php?ville=NLXX0002&nom=Bruxelles#meteo">Bruxelles</a></span></div>
	<div class="listing"><span><a href="index.php?ville=DAXX0009&nom=Copenhague#meteo">Copenhague</a></span></div>
	<div class="listing"><span><a href="index.php?ville=ITXX0028&nom=Florence#meteo">Florence</a></span></div>
	<div class="listing"><span><a href="index.php?ville=TUXX0014&nom=Istambul#meteo">Istambul</a></span></div>
	<div class="listing"><span><a href="index.php?ville=POXX0016&nom=Lisbonne#meteo">Lisbonne</a></span></div>
 
	<div class="listing"><span><a href="index.php?ville=UKXX0085&nom=Londres#meteo">Londres</a></span></div>
	<div class="listing"><span><a href="index.php?ville=GMXX0087&nom=Munich#meteo">Munich</a></span></div>
	<div class="listing"><span><a href="index.php?ville=FRXX0076&nom=Paris#meteo">Paris</a></span></div>
	<div class="listing"><span><a href="index.php?ville=ITXX0067&nom=Rome#meteo">Rome</a></span></div>
</div>
<a href="javascript:;" onMouseOut="clearTimeout(timer);" onMouseOver="move_down()"><img src="modules/meteo/images/meteo-listing-down.png" alt="" /></a>
 
  </div>
 
 
</div>   
  <script type="text/javascript">
var timer;
function move_up() {
document.getElementById('meteo_listing_scroll').scrollTop -=2;
timer=setTimeout('move_up();',40);
}
 
function move_down() {
document.getElementById('meteo_listing_scroll').scrollTop +=2;
timer=setTimeout('move_down();',40);
}
</script>

La météo ne fonctionne pas et affiche -18° pour toutes es villes...quelqu'n aurait il une idée pour remédier à ce problème ?

Merci
jujurochedu42 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/12/2011, 16h52   #2
Expert Confirmé
 
Avatar de emmanuel.remy
 
Emmanuel REMY
Inscription : novembre 2005
Messages : 2 844
Détails du profil
Informations personnelles :
Nom : Emmanuel REMY
Âge : 43

Informations forums :
Inscription : novembre 2005
Messages : 2 844
Points : 3 589
Points : 3 589
Salut,
  1. Ton code HTML est répétitif
  2. Il n'y a pas de javascript sauf dans des fichiers qu'on ne connait pas
  3. Et si c'était la bonne météo hein ? -18 à Florence ça peut pas le faire en hiver ?

Regarde de plus près et si tu vois une piste de l'erreur, refais signe.

ERE
__________________
Quand une tête pense seule, elle devient folle.
emmanuel.remy est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 02h13.


 
 
 
 
Partenaires

Hébergement Web