Se connecter avec
S'enregistrer | Connectez-vous

html faire menu déroulant

Dernière réponse : dans Programmation
Lassé par la pub ? Créez un compte

<!-- DEBUT DU SCRIPT MENU DEROULANT-->
<p><form NAME="menu">
<div align="center"><center><p>
Menu déroulant  <select NAME="popup"
onChange="change_site();" style="background-color:teal; color:yellow" size="1">
<option VALUE="http://www.mon_site.com/page1.htm">-   Faites votre choix   -</option>
<option VALUE="http://www.mon_site.com/page2.htm">-  Commentaire</option>
<option VALUE="http://www.mon_site.com/page3.htm">-  Commentaire</option>
<option VALUE="http://www.mon_site.com/page4.htm">-  Commentaire</option>
<option VALUE="http://www.mon_site.com/repertoire1/page9.htm">-  Commentaire</option>
</select> </p>
</center></div>
</form>
<script>
function change_site() {
var site = document.menu.popup.selectedIndex;
{
window.location.href =
document.menu.popup.options[site].value;
}
}
</script>
</p>
<!-- FIN DU SCRIPT MENU DEROULANT-->

Ya des trucs a modifier, c'est tres simple !
Lassé par la pub ? Créez un compte
Tom's guide dans le monde