Bonjour à tous !

dans un post que j'ai ouvert hier, je demandais de l'aide pour du css.
http://www.developpez.net/forums/d10...sous-elements/

à vrai dire j'essai de créer un widget, une station météo. Jusque là j'ai appris à utiliser des widget jquery, mais je n'en ai jamais fait moi-même. il est temps de changer ça !

voici ma maquette en html & css3
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
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<style>
	#meteo
	{
		position: absolute;
		width: 300px;
		height: 200px;
 
		border-radius: 5px;
 
		font-family: "lucida grande", sans-serif;
		line-height: 1;
	}
 
	.blue_bg
	{
		border: 1px solid #03009C;
 
		background: -webkit-gradient(linear, 0 0, 0 100%, color-stop(0, #6AFBFA), color-stop(0.5, #0088F0), color-stop(0.5, #0078FF), color-stop(1, #03009C));
		-webkit-border-radius: 5px;
		-webkit-box-shadow: inset 0px 0px 0px 1px rgba(0, 34, 84, 0.4), 1px 1px 3px #333;
 
		background: -moz-linear-gradient(0% 100% 90deg, #03009C 0%, #0078FF 50%, #0088F0 50%, #6AFBFA 100%);
		-moz-border-radius: 5px;
		-moz-box-shadow: inset 0px 0px 0px 1px rgba(0, 34, 84, 0.4), 1px 1px 3px #333;
	}
 
	.grey_bg
	{
		border: 1px solid #333736;
 
		background: -webkit-gradient(linear, 0 0, 0 100%, color-stop(0, #BABDBD), color-stop(0.5, #808484), color-stop(0.5, #777979), color-stop(1, #333736));
		-webkit-border-radius: 5px;
		-webkit-box-shadow: inset 0px 0px 0px 1px rgba(100, 100, 100, 0.4), 1px 1px 3px #333;
 
		background: -moz-linear-gradient(0% 100% 90deg, #333736 0%, #777979 50%, #808484 50%, #BABDBD 100%);
		-moz-border-radius: 5px;
		-moz-box-shadow: inset 0px 0px 0px 1px rgba(100, 100, 100, 0.4), 1px 1px 3px #333;
	}
 
	.top
	{
		width: 280px;
		height: 30px;
		padding: 5px 15px 5px 5px;
 
		text-align: right;
	}
 
	.top .date { font-size: 10px; }
	.top .time { font-size: 18px; }
 
	.middle
	{
		width: 290px;
		height: 70px;
		padding: 5px 5px 5px 5px;
	}
 
	.middle .temperature
	{
		float: left;
		width: auto;
		height: 60px;
		padding: 40px 0px 0px 10px;
		font-size: 40px;
	}
 
	.middle .detail
	{
		float: right;
		height: auto;
		padding: 15px 0px 15px 0px;
	}
 
	.middle .detail ul
	{
		list-style-type: none;
		margin: 0px;
		padding: 0px;
 
		font-size: 10px;
	}
 
	.middle .detail .title
	{
		float: left;
		height: 100%;
		padding: 0px 5px 0px 0px;
	}
 
	.middle .detail .data
	{
		float: left;
		height: 100%;
		padding: 0px 10px 0px 0px;
	}
 
	.under
	{
		width: 290px;
		height: 40px;
		padding: 5px 5px 5px 5px;
	}
 
	.under .pager
	{
		float:left;
		height: 25px;
		padding: 15px 0px 0px 0px;
	}
 
	.under .pager button
	{
		width: 70px;
		padding: 2px 0 2px 0;
		background: #c63929;
 
		border-radius: 5px;
 
		opacity: 0.7;
 
		color: #fff;
		font-family: "helvetica neue", helvetica, arial, sans-serif;
		font-size: 10px;
		font-weight: bold;
		letter-spacing: 1px;
		line-height: 1;
		text-align: center;
	}
 
	.under .pager button.blue_button
	{
		border: 1px solid #03009C;;
		text-shadow: 0px -1px 1px rgba(0, 0, 0, .8);
 
		background: -webkit-gradient(linear, 0 0, 0 100%, color-stop(0, #6AFBFA), color-stop(0.5, #0088F0), color-stop(0.5, #0078FF), color-stop(1, #03009C));
		-webkit-border-radius: 5px;
		-webkit-box-shadow: inset 0px 0px 0px 1px rgba(0, 34, 84, 0.4), 1px 1px 3px #333;
 
		background: -moz-linear-gradient(0% 100% 90deg, #03009C 0%, #0078FF 50%, #0088F0 50%, #6AFBFA 100%);
		-moz-border-radius: 5px;
		-moz-box-shadow: inset 0px 0px 0px 1px rgba(0, 34, 84, 0.4), 1px 1px 3px #333;
	}
 
	.under .pager button.grey_button
	{
		text-shadow: 0px -1px 1px rgba(0, 0, 0, .8);
		border: 1px solid #333736;
 
		background: -webkit-gradient(linear, 0 0, 0 100%, color-stop(0, #BABDBD), color-stop(0.5, #808484), color-stop(0.5, #777979), color-stop(1, #333736));
		-webkit-border-radius: 5px;
		-webkit-box-shadow: inset 0px 0px 0px 1px rgba(100, 100, 100, 0.4), 1px 1px 3px #333;
 
		background: -moz-linear-gradient(0% 100% 90deg, #333736 0%, #777979 50%, #808484 50%, #BABDBD 100%);
		-moz-border-radius: 5px;
		-moz-box-shadow: inset 0px 0px 0px 1px rgba(100, 100, 100, 0.4), 1px 1px 3px #333;
	}
 
	.under .pager button:hover
	{
		opacity: 1;
	}
 
	.under .part_day
	{
		float: left;
		width: 90px;
		height: 30px;
		padding: 10px 0px 0px 10px;
	}
 
	.under .part_day a
	{
		float: left;
		cursor: default;
		display: block;
		width: 32px;
		height: 32px;
		text-indent: -9999px;
 
		opacity: 0.7;
	}
 
	.under .part_day a:hover
	{
		float: left;
		cursor: default;
		display: block;
		width: 32px;
		height: 32px;
		text-indent: -9999px;
 
		opacity: 1;
	}
 
	.under .part_day .day
	{
		background-image: url(images/sun-icon.png);
	}
 
	.under .part_day .night
	{
		background-image: url(images/moon-icon.png);
	}
	</style>
</head>
<body>
    <div id="meteo" class="blue_bg">
        <div class="top">
            <div class="date">Lundi 21 Fevrier 2011</div>
            <div class="time">18:56</div>
        </div>
 
        <div class="middle">
            <div class="temperature">8c</div>
 
            <div class="detail">
 
                <div class="title">
                    <ul>
                        <li>Lever du soleil :</li>
                        <li>Coucher du soleil :</li>
                        <li>Vent :</li>
                        <li>&nbsp;- direction :</li>
                        <li>&nbsp;- vitesse :</li>
                        <li>Humidite :</li>
                        <li>Precipitation :</li>
                    </ul>
                </div>
 
                <div class="data">
                    <ul>
                        <li><span class="sunr">7h55</span></li>
                        <li><span class="suns">18h24</span></li>
                        <li>&nbsp;</li>
                        <li><span class="direction">Sud-Est</span></li>
                        <li><span class="vitesse">14 km/h</span></li>
                        <li><span class="hmid">40%</span></li>
                        <li><span class="ppcp">20%</span></li>
                    </ul>
                </div>
            </div>
        </div>
 
        <div class="under">
            <div class="pager">
                <button class="previous_day blue_button">precedent</button>
                <button class="next_day blue_button">suivant</button>
            </div>
 
            <div class="part_day">
                <a href="#" class="day"></a>
                <a href="#" class="night"></a>
            </div>
        </div>
    </div>
</body>
</html>
j'aimerais désormais créer tout ceci par l'intermédiaire de jquery. je dispose de la dernière version de jquery-ui.

voici donc la forme de mon nouveau projet :
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 
    <link rel="stylesheet" type="text/css" href="css/jquery.ui.meteo.css">
 
    <script type="text/javascript" src="js/jquery-ui-1.8.9.custom/js/jquery-1.4.4.min.js"></script>
    <script type="text/javascript" src="js/jquery-ui-1.8.9.custom/development-bundle/ui/jquery.ui.core.js"></script>
    <script type="text/javascript" src="js/jquery-ui-1.8.9.custom/development-bundle/ui/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="js/jquery.ui.meteo.js"></script>
 
	<script type="text/javascript">
	$('#meteo').meteo({
 
	});
	</script>
</head>
<body>
    <div id="meteo"></div>
</body>
</html>
j'ai commencé à écrire le fichier js, mais je ne sais pas quoi faire maintenant.

voici mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
(function( $, undefined )
{
	$.widget( "ui.meteo",
	{
		options:
		{
			userKey: "",
			delay: 600000,
			displayDetail: true
		},
 
	});
}( jQuery ));
j'aimerai savoir où je pourrais trouver d'excellent tutoriel jquery. jusque là je n'ai trouvé que des tuto sur l'intégration de fonctionnalités...

pourriez-vous m'aider svp ?