Team:EPF-Lausanne
From 2009.igem.org
(Difference between revisions)
Line 9: | Line 9: | ||
[[Image:Logo_UBS.jpg|link "www.ubs.com"|200 px|center]] | [[Image:Logo_UBS.jpg|link "www.ubs.com"|200 px|center]] | ||
- | + | <!-- | |
<html><center> | <html><center> | ||
Line 15: | Line 15: | ||
</a></center> | </a></center> | ||
</html> | </html> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <html> | ||
+ | <title>liste déroulante dynamique</title> | ||
+ | <head> | ||
+ | <script language="Javascript" type="text/javascript" > | ||
+ | function choix(formulaire) | ||
+ | { | ||
+ | var j; | ||
+ | var i = formulaire.boite1.selectedIndex; | ||
+ | if (i == 0) | ||
+ | for(j = 1; j <3; j++) | ||
+ | formulaire.boite2.options[j].text="Non!!"; | ||
+ | |||
+ | |||
+ | else{ | ||
+ | switch (i){ | ||
+ | case 1 : var text = new Array( "Marseille","PSG","Monaco"); | ||
+ | break; | ||
+ | case 2 : var text = new Array("Toulouse","Agen","Paris"); | ||
+ | break; | ||
+ | |||
+ | case 3 : var text = new Array("Dijon","Pau","Gravelines"); | ||
+ | break; | ||
+ | } | ||
+ | |||
+ | for(j = 0; j<3; j++) | ||
+ | formulaire.boite2.options[j+1].text=text[j]; | ||
+ | } | ||
+ | formulaire.boite2.selectedIndex=0; | ||
+ | } | ||
+ | </script> | ||
+ | </head> | ||
+ | <body> | ||
+ | <form name="formulaire"> | ||
+ | <select name="boite1" onChange="choix(this.form)"> | ||
+ | <option selected>...........Choisissez une rubrique...........</option> | ||
+ | <option>How to run simulation</option> | ||
+ | <option>rugby</option> | ||
+ | <option>basket</option> | ||
+ | |||
+ | </select> | ||
+ | |||
+ | <select name="boite2"> | ||
+ | <option selected>...........Choisissez une rubrique...........</option> | ||
+ | <option></option> | ||
+ | <option></option> | ||
+ | <option></option> | ||
+ | |||
+ | </form> | ||
+ | </select> | ||
+ | </body> | ||
+ | </html> | ||
+ | |||
+ | |||
+ | ---> | ||
+ | |||
+ | <div id="menu"> | ||
+ | <ul> | ||
+ | <li><a href="index.html">Accueil</a></li> | ||
+ | <li><a href="#">Contacte</a> | ||
+ | <li><a href="#">Membre</a> | ||
+ | <ul> | ||
+ | <li><a href="#">Connexion</a></li> | ||
+ | <li><a href="#">Inscription</a></li> | ||
+ | </ul> | ||
+ | <li><a href="#">Astuces</a> | ||
+ | <ul> | ||
+ | <li><a href="#">Windows XP</a> | ||
+ | <li><a href="#">Windows Vista</a> | ||
+ | <li><a href="#">Internet Explorer</a> | ||
+ | </ul> | ||
+ | </ul> | ||
+ | </div> | ||
+ | |||
</div><div CLASS="epfl09bouchon"></div> | </div><div CLASS="epfl09bouchon"></div> |
Revision as of 09:10, 28 July 2009