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
| <script type="text/javascript">
<!--
function choix(boite)
{
var j, n;
var i = boite.selectedIndex;
var boite2 = document.getElementById("boite2");
var tab = null, liens = null;
n = boite2.options.length;
for(j = 1; j <n; j++)
boite2.remove(1);
if (i == 0)
{
return;
}
else
{
switch (i)
{
case 1 : tab = new Array("n1","n2","n3","n4","n5");
break;
case 2 : tab = new Array("s1","s2","s3");
break;
case 3 : tab = new Array("so1","so2","so3","so4","so5","so6");
break;
case 4 : tab = new Array("L1");
break;
case 5 : tab = new Array("sag1","sag2");
break;
}
for(j = 0; j<tab.length; j++)
boite2.options.add(new Option(tab[j], false, false));
}
boite2.selectedIndex=0;
}
function ouvrepage(boite)
{
if (boite.selectedIndex!=0)
{
document.location.href = boite.value;
}
}
//-->
</script>
</head>
<body>
<form id="formulaire">
<select id="boite1" onchange="choix(this)">
<option selected="selected">...........Choisissez ...........</option>
<option>Test1</option>
<option>Test2</option>
<option>Test3</option>
<option>Test4</option>
<option>Test5</option>
</select>
<select id="boite2">
<option selected="selected">...........Choisissez ...........</option>
</select>
<select id="boite3" onchange="ouvrepage(this)">
<option selected="selected">...........Choisissez ...........</option>
<option>3emeChoix1</option>
<option>3emechoix2</option>
<option>3emechoix3</option>
</select>
</form> |
Partager