-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsrc.htm
481 lines (416 loc) · 17.3 KB
/
src.htm
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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Code Source Code Javascript Jeu Video Gratuit Free Web Game Burger Codes Sources GPL
Hamburger Freeware
</title>
<meta content="text/html" charset="UTF-8" http-equiv="Content-Type">
<style type="text/css">
:hover {
COLOR: #ff00c0; TEXT-DECORATION: none;
BACKGROUND-COLOR: c0e6ff;
}
:link, :visited {
COLOR: #0000c0; TEXT-DECORATION: none;
}
UL {
MARGIN: 0;
PADDING: 0;
}
LI A {
MARGIN: 0;
PADDING: 0;
display: block;
width: 100%;
}
H1 {
BACKGROUND-COLOR : #cccccc;
}
span.h {
font-weight:bold;
color:#800000;
}
</style>
</head>
<body bgcolor="#eeeeee">
<a name="top"></a>
<a target="burger" href="burger.htm">Jouez à Web burger !</a>
<a target="burger" href="http://buze.michel.chez.com/Burger/burger.htm">
Adresse en ligne : http://buze.michel.chez.com/Burger/burger.htm</a>
Auteur : Michel BUZE<hr>
<ul>
<li><a href="http://buze.michel.chez.com/burger.zip">
Cliquer ici pour télécharger l'archive burger.zip contenant l'ensemble des fichiers
qui constituent le jeu</a><hr></li>
<li><a href="mailto:michel.buze@gmail.com">
Email : michel.buze@gmail.com</a></li>
<!--<li><a target="weborama" href="http://vote.weborama.fr/fcgi-bin/vote.fcgi?8740">
Voter pour ce jeu au WebOrama</a></li>-->
<li><a target="livreor" href="http://www.free-livredor.com/livre-d-or-des-sites-de-michel-buze-60836-1.html">
Laisser un mot sur le LIVRE D'OR</a></li>
</ul>
<hr><span class="h">Règles du Jeu : </span><br>
<b>Web Burger</b> est un petit JEU DE MÉMOIRE amusant, dont les règles sont simples
mais qui est plus difficile qu'il n'y parait.<br>
Des commandes arrivent deux par deux, et vous devez y répondre une par une.
Au début arrivent la commande 1 une 2.<br>
Une fois servie la commande 1, les commandes 3 et 4 arrivent
et vous devez servir la 2, puis la 5 et 6 et
vous servirez la 3...<br>
Peu à peu, tout va s'embrouiller !
<br>
Remarque : J'ai imaginé ce jeu lorsque j'étais au collège et je l'avais
programmé en Basic sur une calculatrice programmable.<br>
<hr>
<span class="h">Sources : </span>
<a href="#burger">[ burger.htm ]</a>
<a href="#burgert">[ burgert.htm ]</a>
<a href="#burgerm">[ burgerm.htm]</a>
<a href="#rejouer">[ rejouer.htm ]</a>
<hr>
<span class="h">Remarques sur le fichier archive</span>
<a href="http://buze.michel.chez.com/burger.zip">burger.zip</a>
contenant l'ensemble des fichiers qui constituent le jeu<br>
- Pour l'utiliser, vous devez extraire tous les fichiers dans un répertoire,
plus ouvrir le fichier "burger.htm" avec votre navigateur.
Il vous faut un logiciel de décompression zip. Pour Windows, on
trouvera sur le site
<a target="izarc" href="http://izarc.free.fr">http://izarc.free.fr</a>
le logiciel izarc pour le faire (il est gratuit et en français).
Vous pouvez aussi consulter ma page d'informations sur les formats d'archive :
<a target="compress" href="http://buze.michel.chez.com/123/compress.htm">
http://buze.michel.chez.com/123/compress.htm (ou http://z-compress.fr.fm)</a><br>
- Il n'est pas nécessaire d'être connecté à Internet pour jouer.<br>
- Les fichiers GIF sont les images utilisées par le jeu, et les
fichiers burgerm.htm, burgert.htm et rejouer.htm sont utilisés par le
fichier "burger.htm", mais ils ne sont prévus pour être ouverts
directement par un navigateur.<br>
- Vous pouvez distribuer l'archive à qui vous voulez,
sans être obligé de m'en informer,
conformément à
<a target="gpl" href="http://www.gnu.org/licenses/gpl.html">
la licence GPL.</a><br>
(Par exemple, vous ne devez pas supprimer des fichiers et conserver
la licence).<br>
Vous pouvez également inclure ce jeu dans un autre site web,
toujours sans être obligé de m'en informer.<br>
- Merci tout de même de
<a href="mailto:michel.buze@gmail.com">
me contacter par email à l'adresse
michel.buze@gmail.com</a>
si vous avez des critiques (bonnes ou mauvaises)
à formuler, si vous avez traduit, amélioré, réécrit ce jeu dans un autre langage
(ou que vous souhaiteriez le faire).
<br><br>
<span class="h">Remarques sur le code :</span>
- Ce jeu a été programmé en Javascript 1.0 pour fonctionner avec une vieille
version de Netscape.<br>
- Le coeur de l'algorithme est constitué des fonctions Commande et Teste,
soit à peine quelques lignes.<br>
- La fonction animtext sert juste à faire joli...
Elle ne marche pas avec Netscape 4.<br>
- Dans le formulaire de burgerm.htm, les éléments de type hidden ne fonctionnent
pas avec Netscape 4, ni en indiquant la propriété display:none.
J'ai donc utilisé des labels de taille 1px, ce qui est un peu visible avec Firefox.<br>
- J'ai testé ce jeu avec Microsoft Internet Explorer 5.5 et 6.0,
Mozilla Firefox 1.0, Opera 6 et une vieille version de Netscape : Communicator 4.7
(ce navigateur est le plus limité), sous Windows XP.
<br>
<hr><span class="h">Licence :</span>
Web Burger - Mind game<br>
Règles et Codage Copyright (C) Michel BUZE<br>
Graphismes : (c) 1997 Image Club Graphics (Adobe Systems Incorporated)<br><br>
<br>
Les images proviennent du logiciel de démo de l'API Swing :<br>
<a target=ImageClubFood1 href=http://www.javaservice.net/~java/api/swing/examples/SwingSet/images/ImageClub/food/>
http://www.javaservice.net/~java/api/swing/examples/SwingSet/images/ImageClub/food/</a><br>
<a target=ImageClubFood2 href=http://www.cs.cf.ac.uk/Dave/HCI/Examples/Lecture1_Overview/SwingSet1/classes/images/ImageClub/food/>
http://www.cs.cf.ac.uk/Dave/HCI/Examples/Lecture1_Overview/SwingSet1/classes/images/ImageClub/food/</a>
<br><br>
Ce programme est un logiciel libre: vous pouvez le redistribuer
et/ou le modifier selon les termes de la "GNU General Public License",
version 2 ou (à votre choix) toute version ultérieure.<br>
<a style="display:block" target="gpl" href="http://www.linux-france.org/article/these/gpl.html">
Traduction de la GPL non officielle (en anglais) : http://www.linux-france.org/article/these/gpl.html</a>
<a style="display:block" target="gpl" href="http://www.gnu.org/licenses/gpl.html">
GPL (en anglais) : http://www.gnu.org/licenses/gpl.html</a>
<a style="display:block" target="gpl" href="http://www.gnu.org/copyleft/copyleft.fr.html">
Définition du copyleft (en français) : http://www.gnu.org/copyleft/copyleft.fr.html</a>
<hr>
<h1><a name="burger" href="#top">burger.htm</a></h1>
<pre>
<html>
<head>
<title>WEB BURGER - UN JEU DE MEMOIRE EN LIGNE 100% JAVASCRIPT 100% GRATUIT</title>
<meta name="keywords" content="jeu, game, ligne, gratuit, javascript, memoire,
reflexion, memory, resto, rapide, fast-food, burger, hamburger, soda, frites,
donut, hot-dog, pizza">
</head>
<frameset noresize border="0" rows="190,*,0">
<frame src="burgert.htm">
<frame src="burgerm.htm">
<frame src="rejouer.htm">
<noframes>
<body>
Désolé, votre navigateur doit supporter les cadres (frames)
</body>
</noframes>
</frameset>
</html>
</pre>
<h1><a name="burgert" href="#top">burgert.htm</a></h1>
<pre>
<html>
<head>
<title></title>
<meta content="text/html" charset="UTF-8" http-equiv="Content-Type">
</head>
<body>
<script type="text/javascript">
<!--
if (parent.frames[0] == null) document.location = "burger.htm"
x = 10;
place = -200;
place2 = 200;
pass =0;
function animtext() {
if (pass == 0) {
if (place2 != 0) {
texte1.left = (place = place + x);
texte2.left = (place2 = place2 - x);
tempoText = setTimeout('animtext()', 35);
} else {
pass = 1;
tempoText = setTimeout('animtext()', 5000);
}
} else {
if (place2 != 300) {
texte1.left = (place = place - x);
if (texte1.left < 0) texte1.display = none
texte2.left = (place2 = place2 + x);
tempoText = setTimeout('animtext()', 35);
} else {
texte1.display = "none"
texte2.display = "none"
}
}
}
TableNoms = new Array( "un hamburger",
"une pizza",
"des frites",
"un soda",
"un hot-dog",
"une boule",
"un donut",
"un batonnet",
"une tarte");
e = parent.frames[1].document.forms[0].elements
j = e[2].value
if (e[3].value != 0) {
document.write("<body style=\"margin-top:0\" background=\"soleil.jpg\"><B>",
"<FONT FACE=\"Comic Sans MS,Arial\" SIZE=5>",
"<img align=\"center\" width=\"89\" height=\"64\">",
"<span ID=texte1 STYLE=position:relative> Le client ",
j,
" voulait ",
TableNoms[e[0].value],
"</span><BR>",
"<img align=\"center\" width=\"89\" height=\"64\">",
"<span ID=texte2 STYLE=position:relative> Vous lui avez servi ", TableNoms[e[1].value],
"</span><BR>CLIQUEZ SUR LE BOUTON POUR REJOUER...<HR>")
parent.frames[1].location = "rejouer.htm"
} else {
document.write("<body style=\"margin-top:0\" background=\"soleil.jpg\"><B>
"<FONT FACE=\"Comic Sans MS,Arial\" SIZE=\"5\">",
"<img align=\"center\" width=\"89\" height=\"64\">",
"<span ID=texte1 STYLE=position:relative> Le client ",2*j-1," commande ",
TableNoms[e[0].value],"</span><BR>",
"<img align=\"center\" width=\"89\" height=\"64\">",
"<span ID=texte2 STYLE=position:relative> Le client ",2*j ," commande ",
TableNoms[e[1].value],
"</span><BR>Que servez-vous au client ", j ," ?")
}
// Lorsque l'on enregistre la page sur le disque dur, Internet Explorer créé un répertoire
// par frame : burgerm_fichiers, burgert_fichiers, rejouer_fichiers.
parent.frames[0].document.images[0].src = parent.frames[1].document.images[e[0].value].src
parent.frames[0].document.images[1].src = parent.frames[1].document.images[e[1].value].src
if (document.getElementById) {
var texte1 = document.getElementById("texte1").style
var texte2 = document.getElementById("texte2").style
window.onload = animtext;
}
//-->
</script>
</body>
</html></pre>
<h1><a name="burgerm" href="#top">burgerm.htm</a></h1>
<pre>
<html>
<head>
<title></title>
<meta content="text/html" charset="UTF-8" http-equiv="Content-Type">
<script type="text/javascript">
<!--
if (parent.frames[0] == null) { document.location = "burger.htm" }
if (document.all) {
top.window.resizeTo(790, 604);
} else if (document.layers || document.getElementById) {
top.window.outerWidth = 790;
top.window.outerHeight = 604;
}
function Commande() {
i++
TableChoix[2 * i - 2] = Math.round(Math.random() * 100000000) % 9
TableChoix[2 * i - 1] = Math.round(Math.random() * 100000000) % 9
document.forms[0].elements[0].value = TableChoix[2 * i - 2]
document.forms[0].elements[1].value = TableChoix[2 * i - 1]
document.forms[0].elements[2].value = i
parent.frames[0].location = "burgert.htm"
}
function Teste(reponse) {
if (document.forms[0].elements[3].value != 1) {
if (reponse == TableChoix[i - 1]) {
Commande()
} else {
document.forms[0].elements[0].value = TableChoix[i - 1]
document.forms[0].elements[1].value = reponse
document.forms[0].elements[2].value = i
document.forms[0].elements[3].value = 1
parent.frames[0].location = "burgert.htm"
}
}
}
//-->
</script>
<style type="text/css">
BODY {
margin:0;
}
TD {
font-size:13px;
}
:hover {
COLOR: #ff00ff; TEXT-DECORATION: none;
BACKGROUND-COLOR: #c0e6ff;
}
:link, :visited {
COLOR: #0000c0; TEXT-DECORATION: none;
}
</style>
</head>
<body background="soleil.jpg">
<table cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href="javascript:Teste(0)">
<img src="0.gif" border="0" width="89" height="64" alt="hamburger" ></a>
<h4><a href="javascript:Teste(0)">Un hamburger</a></h4></td>
<td align="center"><a href="javascript:Teste(1)">
<img src="1.gif" border="0" width="89" height="64" alt="pizza"></a>
<h4><a href="javascript:Teste(1)">Une pizza</a></h4></td>
<td align="center"><a href="javascript:Teste(2)">
<img src="2.gif" border="0" width="89" height="64" alt="frites"></a>
<h4><a href="javascript:Teste(2)">Des frites</a></h4></td>
<td align="center"><a href="javascript:Teste(3)">
<img src="3.gif" border="0" width="89" height="64" alt="soda"></a>
<h4><a href="javascript:Teste(3)">Un soda</a></h4></td>
<td align="center"><a href="javascript:Teste(4)">
<img src="4.gif" border="0" width="89" height="64" alt="hot-dog"></a>
<h4><a href="javascript:Teste(4)">Un hot-dog</a></h4></td>
<td><font face="arial" style="font-size:14px">
Vous pouvez enregister cette page<br>
sur votre disque dur pour y jouer<br>
hors connexion !
<hr><a target="burgersrc" href="src.htm">
[ Infos / Source ]</a>
<a href="http://buze.michel.chez.com/burger.zip">
[ Télécharger (zip) ]</a>
</font>
</td>
</tr>
<tr>
<td align="center"><a href="javascript:Teste(5)">
<img src="5.gif" border="0" width="89" height="64" alt="boule"></a>
<h4><a href="javascript:Teste(5)">Une boule</a></h4></td>
<td align="center"><a href="javascript:Teste(6)">
<img src="6.gif" border="0" width="89" height="64" alt="donut"></a>
<h4><a href="javascript:Teste(6)">Un donut</a></h4></td>
<td align="center"><a href="javascript:Teste(7)">
<img src="7.gif" border="0" width="89" height="64" alt="batonnet"></a>
<h4><a href="javascript:Teste(7)">Un batonnet</a></h4></td>
<td align="center"><a href="javascript:Teste(8)">
<img src="8.gif" border="0" width="89" height="64" alt="tarte"></a>
<h4><a href="javascript:Teste(8)">Une tarte</a></h4>
</td>
<td></td>
<td>
<table border="0" cellspacing="0" cellpadding="0"><tr>
<td>
<table border="4" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#f0f0c0">
<font face="MS SANS SERIF" size="4" color="#ff0000">
<a style="display:block" target="weborama"
href="http://vote.weborama.fr/fcgi-bin/vote.fcgi?8740">
Voter pour ce jeu au WebOrama</a></font>
</td></tr><tr><td bgcolor="#99f099">
<font face="MS SANS SERIF" size="4">
<a style="display:block" target="michbuze" href="http://buze.michel.chez.com">
Le site de l'auteur (Michel BUZE)</a></font>
</td></tr><tr><td bgcolor="#c0c0f0">
<font face="MS SANS SERIF" size="4">
<a style="display:block" href="mailto:michel.buze@gmail.com">
e-mail: michel.buze@gmail.com</a></font>
</td></tr><tr><td bgcolor="#99f099">
<font face="MS SANS SERIF" size="4">
<a style="display:block" target="livreor"
href="http://www.free-livredor.com/index.php?lid=60836">
Laisser un mot sur le LIVRE D'OR</a></font>
</td></tr></table>
</td></tr></table>
</td><td valign=bottom>
<div style="line-height:0">
<form action="">
<input size="1" style="height:0;width:0">
<input size="1" style="height:0;width:0">
<input size="1" style="height:0;width:0">
<input size="1" style="height:0;width:0" value="0"></form></div>
</td></tr></table>
<script type="text/javascript">
<!--
TableChoix = new Array()
i=0
Commande()
//-->
</script>
</body>
</html>
</pre>
<h1><a name="rejouer" href="#top">rejouer.htm</a></h1>
<pre>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<script type="text/javascript">
<!--
if (parent.frames[0] == null) document.location = "burger.htm"
-->
</script>
</head>
<body background="soleil.jpg">
<center>
<form action="">
<input type="BUTTON" value="R E J O U E Z ! ! !"
onclick="javascript:document.location='burgerm.htm'">>
<br><br>
</center>
<font face="Comic Sans MS" size="4" color="#0000C0">
Si vous en avez marre et que vous voulez arrêter,
<a target="michbuze" href="http://buze.michel.chez.com">
allez faire un tour sur ma page perso : http://buze.michel.chez.com</a>
<br></font>
</body>
</html>
</pre>
</body>
</html>