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 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
|
<FORM name="G1SCRIPTNAME">
<table border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td nowrap height="11">
<select name="G1SCRIPTNAME1" size="1" style="font-family: Lucida Console,Verdana, Tahoma, Arial; font-size: 9"
onChange="ReDirect1(this.options.selectedIndex)">
<option selected>---Selection 1-------------</option>
<option>Menu 1</option>
<option>Menu 2</option>
</select>
<select name="G1SCRIPTNAME2" size="1" style="font-family: Lucida Console,Verdana, Tahoma, Arial; font-size: 9"
onChange="ReDirect2(this.options.selectedIndex)">
<option value="" selected> </option>
<option value="" selected>---Selection 2--------------</option>
<option value="" selected>---Selection 2--------------</option>
</select>
<select name="G1SCRIPTNAME3" size="1" style="font-family: Lucida Console,Verdana, Tahoma, Arial; font-size: 9"
onChange="ReDirect3(this.options.selectedIndex)">
<option value="" selected> </option>
<option value="" selected>---Selection 3----------------</option>
<option value="" selected>---Selection 3----------------</option>
</select>
<select name="G1SCRIPTNAME4" size="1" style="font-family: Lucida Console,Verdana, Tahoma, Arial; font-size: 9"
onChange="ReDirect(this.options.selectedIndex)">
<option value="" selected> </option>
<option value="" selected>---Selection 4----------------</option>
<option value="" selected>---Selection 4----------------</option>
</select>
<SCRIPT language="JavaScript" title="G1SCRIPT">
<!--
/* */
var temp=document.G1SCRIPTNAME.G1SCRIPTNAME2
var temp1=document.G1SCRIPTNAME.G1SCRIPTNAME3
var temp2=document.G1SCRIPTNAME.G1SCRIPTNAME4
var CB2=document.G1SCRIPTNAME.G1SCRIPTNAME1.options.length
var CB3=document.G1SCRIPTNAME.G1SCRIPTNAME2.options.length
var CB4=document.G1SCRIPTNAME.G1SCRIPTNAME3.options.length
var ComboBox2=new Array(CB2)
var ComboBox3=new Array(CB2)
var ComboBox4=new Array(CB2)
var maximum="12"
var max=eval(maximum-1)
/* */
for (a=0; a<=max; a++){
ComboBox2[a]=new Array()
}
for (b=0; b<=max; b++){
ComboBox3[b]=new Array()
for (c=0; c<=max; c++){
ComboBox3[b][c]=new Array()
}}
for (d=0; d<=max; d++){
ComboBox4[d]=new Array()
for (e=0; e<=max; e++){
ComboBox4[d][e]=new Array()
for (f=0;f<=max; f++){
ComboBox4[d][e][f]=new Array()
}}}
/* POUR MEMOIRE
[x][x] = MENU - SOUS MENU
*/
ComboBox2[0][0]=new Option("---Selection2---"," ");
ComboBox2[1][0]=new Option("Faites votre choix!"," ");
ComboBox2[1][1]=new Option("Sous Menu 1 . 1","");
ComboBox2[1][2]=new Option("Sous Menu 2 . 1","");
ComboBox2[2][0]=new Option("Faites votre choix!"," ");
ComboBox2[2][1]=new Option("Sous Menu 1 . 2","");
ComboBox2[2][2]=new Option("Sous Menu 2 . 2","");
/* POUR MEMOIRE
[x][x][x] = MENU - SOUS MENU - CATEGORIE
*/
ComboBox3[0][0][0]=new Option("---Selection 3---"," ");
ComboBox3[1][0][0]=new Option("---Selection 3---"," ");
ComboBox3[1][1][0]=new Option("Faites votre choix!"," ");
ComboBox3[1][1][1]=new Option("Cat 1 . 1 . 1","");
ComboBox3[1][1][2]=new Option("Cat 2 . 1 . 1","");
ComboBox3[1][2][0]=new Option("Faites votre choix!"," ");
ComboBox3[1][2][1]=new Option("Cat 1 . 2 . 1","");
ComboBox3[1][2][2]=new Option("Cat 2 . 2 . 1","");
ComboBox3[2][0][0]=new Option("---Selection 3---"," ");
ComboBox3[2][1][0]=new Option("Faites votre choix!"," ");
ComboBox3[2][1][1]=new Option("Cat 1 . 1 . 2","");
ComboBox3[2][1][2]=new Option("Cat 2 . 1 . 2","");
ComboBox3[2][2][0]=new Option("Faites votre choix!"," ");
ComboBox3[2][2][1]=new Option("Cat 1 . 2 . 2","");
ComboBox3[2][2][2]=new Option("Cat 2 . 2 . 2","");
/* POUR MEMOIRE
[x][x][x][x] = MENU - SOUS MENU - CATEGORIE - SITE
*/
ComboBox4[0][0][0][0]=new Option("---Selection 4---"," ");
ComboBox4[1][0][0][0]=new Option("---Selection 4---"," ");
ComboBox4[1][1][1][0]=new Option("Choix de destination"," ");
ComboBox4[1][1][1][1]=new Option("Site 1 Cat 1 Sous Menu 1 Menu 1.","http://www.g1script.com");
ComboBox4[1][1][1][2]=new Option("Site 2 Cat 1 Sous Menu 1 Menu 1.","http://www.g1script.com");
ComboBox4[1][1][2][0]=new Option("Choix de destination"," ");
ComboBox4[1][1][2][1]=new Option("Site 1 Cat 2 Sous Menu 1 Menu 1.","http://www.g1script.com");
ComboBox4[1][1][2][2]=new Option("Site 2 Cat 2 Sous Menu 1 Menu 1.","http://www.g1script.com");
ComboBox4[1][2][2][0]=new Option("Choix de destination"," ");
ComboBox4[1][2][2][1]=new Option("Site 1 Cat 2 Sous Menu 2 Menu 1.","http://www.g1script.com");
ComboBox4[1][2][2][2]=new Option("Site 2 Cat 2 Sous Menu 2 Menu 1.","http://www.g1script.com");
ComboBox4[1][2][2][0]=new Option("Choix de destination"," ");
ComboBox4[1][2][2][1]=new Option("Site 1 Cat 2 Sous Menu 2 Menu 1.","http://www.g1script.com");
ComboBox4[1][2][2][2]=new Option("Site 2 Cat 2 Sous Menu 2 Menu 1.","http://www.g1script.com");
ComboBox4[2][0][0][0]=new Option("---Selection 4---"," ");
ComboBox4[2][1][1][0]=new Option("Choix de destination"," ");
ComboBox4[2][1][1][1]=new Option("Site 1 Cat 1 Sous Menu 1 Menu 2.","http://www.g1script.com");
ComboBox4[2][1][1][2]=new Option("Site 2 Cat 1 Sous Menu 1 Menu 2.","http://www.g1script.com");
ComboBox4[2][1][2][0]=new Option("Choix de destination"," ");
ComboBox4[2][1][2][1]=new Option("Site 1 Cat 2 Sous Menu 1 Menu 2.","http://www.g1script.com");
ComboBox4[2][1][2][2]=new Option("Site 2 Cat 2 Sous Menu 1 Menu 2.","http://www.g1script.com");
ComboBox4[2][2][2][0]=new Option("Choix de destination"," ");
ComboBox4[2][2][2][1]=new Option("Site 1 Cat 2 Sous Menu 2 Menu 2.","http://www.g1script.com");
ComboBox4[2][2][2][2]=new Option("Site 2 Cat 2 Sous Menu 2 Menu 2.","http://www.g1script.com");
ComboBox4[2][2][2][0]=new Option("Choix de destination"," ");
ComboBox4[2][2][2][1]=new Option("Site 1 Cat 2 Sous Menu 2 Menu 2.","http://www.g1script.com");
ComboBox4[2][2][2][2]=new Option("Site 2 Cat 2 Sous Menu 2 Menu 2.","http://www.g1script.com");
/* */
function ReDirect1(x){
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null
for (i=0;i<ComboBox2[x].length;i++){
temp.options[i]=new Option(ComboBox2[x][i].text,ComboBox2[x][i].value)
}
temp.options[0].selected=true
ReDirect2(0)
}
function ReDirect2(y){
var x=document.G1SCRIPTNAME.G1SCRIPTNAME1.options.selectedIndex
for (m=temp1.options.length-1;m>0;m--)
temp1.options[m]=null
for (i=0;i<ComboBox3[x][y].length;i++){
temp1.options[i]=new Option(ComboBox3[x][y][i].text,ComboBox3[x][y][i].value)
}
temp1.options[0].selected=true
ReDirect3(0)
}
function ReDirect3(z){
var x=document.G1SCRIPTNAME.G1SCRIPTNAME1.options.selectedIndex
var y=document.G1SCRIPTNAME.G1SCRIPTNAME2.options.selectedIndex
for (m=temp2.options.length-1;m>0;m--)
temp2.options[m]=null
for (i=0;i<ComboBox4[x][y][z].length;i++){
temp2.options[i]=new Option(ComboBox4[x][y][z][i].text,ComboBox4[x][y][z][i].value)
}
temp2.options[0].selected=true
}
function ReDirect(z){
window.location=temp2[z].value
}
//-->
</SCRIPT>
</td>
</tr>
</table>
</FORM> |
Partager