 |
Forums ProgMatique
Programmation (C/C++, JAVA, PHP, JavaScript, ...) et Informatique (Webmaster, Web) |
|
|
| Previous topic :: Next topic |
| Author |
Message |
djeje72
Offline
Joined: 20 Apr 2006 Posts: 1
|
Posted: Thu 20 Apr 2006 - 11:05 Post subject: Aide formulaire |
|
|
bonjour j'aimerais de l'aide pour faire fonctionner ce document : <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> <title>images</title> <style type="text/css"> body {text-align:center} div {margin-top:20px} </style> <script type="text/javascript"> var lesChoix=new Array(); var lesImages= new Array(); lesChoix["entree"]= new Array("Taboule","Celeri","Macedoine"); lesChoix["plat"]= new Array("coucous","coq au vin","paella"); lesChoix["dessert"]= new Array("tarte aux pommes","tarte aux myrtilles","gateau au chocolat"); lesImages["entree"]= new Array("taboule.png","celeri.png","macedoine.png"); lesImages["plat"]= new Array("couscous.png","coqauvin.png","paella.png"); lesImages["dessert"]= new Array("tarteauxpommes.png","tarteauxmyrtilles.png","gateauauchocolat.png"); </script> </head> <body> <h1> Le menu </h1> <div> <input type="radio" id="entree" name="typePlat" checked="checked" /> Entrée <input type="radio" id="plat" name="typePlat" /> Plat <input type="radio" id="dessert" name="typePlat" /> Dessert </div> <div> <select id="lstChoix" "> <option value="taboule"> taboule</option> <option value="celeri"> celeri</option> <option value="macedoine"> macedoine </option> </select> </div> <div> <img id="imgPlat" src="taboule.png" alt="plat" /> </div> </body> </html> ---- je débute en javascript et j'aimerais de l'aide pour que ne faite, lorsqu'on choisi un type de plat, cela affiche des plats dans la liste et qu'ensuite une image s'affiche. merci |
|
| Back to top |
|
 |
SimMaster
Administrateur

 Online
Joined: 08 May 2005 Posts: 492
Localisation: France
|
|
| Back to top |
|
 |
|
|