Patie
Je voudrais pouvoir mettre trois listes déroulantes dans une même page.Chaque liste étant indépendante et permettant d'ouvrir des fichiers en (.PDF).J'ai mis un script pour une liste ça fonctionne. quand je met la deuxieme cela ne fonctionne plus ; même en changeant le nom de la fonction et le select 1.
merci de m'aider:
<script>
function go_nav()
{
if (document.select1.more.options[0].selected) parent.location.href = "#";
if (document.select1.more.options[1].selected) parent.location.href = "cdrom 57/commun/topo/PROCETOPO.pdf";
if (document.select1.more.options[2].selected) parent.location.href = "cdrom 57/commun/topo/RAPPELTRIGO.pdf";
if (document.select1.more.options[3].selected) parent.location.href = "cdrom 57/commun/topo/GLOSSAIRE.pdf";
if (document.select1.more.options[4].selected) parent.location.href = "cdrom 57/commun/topo/GPS.pdf";
if (document.select1.more.options[5].selected) parent.location.href = "cdrom 57/commun/topo/IMPRITS.pdf";
if (document.select1.more.options[6].selected) parent.location.href = "cdrom 57/commun/topo/EPC.pdf";
if (document.select1.more.options[7].selected) parent.location.href = "cdrom 57/commun/topo/TS.pdf";
if (document.select1.more.options[8].selected) parent.location.href = "cdrom 57/commun/topo/T16.pdf";
}
</script>
dans le body:
<form name=select1>
<select class=mainnav style="WIDTH: 150px; HEIGHT: 15px" onChange=go_nav() name=more>
<option selected>Faire un choix</option>
<option>Procédé topographique</option>
<option>Rappel de trigonométrie</option>
<option>Glossaire de la topo</option>
<option>Le GPS</option>
<option>Imprimé topo</option>
<option>Calcul d'EPC</option>
<option>Le Théodolite simplifie</option>
<option>Le T16</option>
</select></form>