Español
<!-- 把报电影观看在<cuerpo> 地址中 --> <!-- http://www.downcodes.com --> <!-- bbs http://www.downcodes.com/bbs- - > <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var arrItems1 = new Array(); var arrItemsGrp1 = nueva matriz(); arrItems1[3] = "Camión"; arrItemsGrp1[3] = 1; arrItems1[4] = "Tren"; arrItemsGrp1[4] = 1; arrItems1[5] = "Coche"; arrItemsGrp1[5] = 1; arrItems1[6] = "Barco"; arrItemsGrp1[6] = 2; arrItems1[7] = "Submarino"; arrItemsGrp1[7] = 2; arrItems1[0] = "Aviones"; arrItemsGrp1[0] = 3; arrItems1[1] = "Ultraligero"; arrItemsGrp1[1] = 3; arrItems1[2] = "Planeador"; arrItemsGrp1[2] = 3; var arrItems2 = nueva matriz(); var arrItemsGrp2 = nueva matriz(); arrItems2[21] = "747"; arrItemsGrp2[21] = 0 arrItems2[22] = "Cessna"; arrItemsGrp2[22] = 0 arrItems2[31] = "Folleto Kolb"; arrItemsGrp2[31] = 1 arrItems2[34] = "Kitfox"; arrItemsGrp2[34] = 1 arrItems2[35] = "Planeador Schwietzer"; arrItemsGrp2[35] = 2 arrItems2[99] = "Chevy Malibu"; arrItemsGrp2[99] = 5 arrItems2[100] = "Lincoln LS"; arrItemsGrp2[100] = 5 arrItems2[57] = "BMW Z3"; arrItemsGrp2[57] = 5 arrItems2[101] = "F-150"; arrItemsGrp2[101] = 3 arrItems2[102] = "Tahoe"; arrItemsGrp2[102] = 3 arrItems2[103] = "Tren de mercancías"; arrItemsGrp2[103] = 4 arrItems2[104] = "Tren de pasajeros"; arrItemsGrp2[104] = 4 arrItems2[105] = "Petrolero"; arrItemsGrp2[105] = 6 arrItems2[106] = "Barco de pesca"; arrItemsGrp2[106] = 6 arrItems2[200] = "Clase Los Ángeles"; arrItemsGrp2[200] = 7 arrItems2[201] = "Clase Kilo"; arrItemsGrp2[201] = 7 arrItems2[203] = "Clase Seawolf"; arrItemsGrp2[203] = 7 función selectChange(control, controlToPopulate, ItemArray, GroupArray) { var myEle; variablex; // Vacíe el segundo cuadro desplegable de cualquier opción para (var q=controlToPopulate.options.length;q>=0;q--) controlToPopulate.options[q]=null; if (control.name == "firstChoice") { // Vacíe el tercer cuadro desplegable de cualquier opción para (var q=myChoices.thirdChoice.options.length;q>=0;q--) myChoices.thirdChoice.options [q] = nulo; } // AGREGAR opción predeterminada: en caso de que no haya valores myEle = document.createElement("option"); myEle.valor = 0; myEle.text = "[SELECCIONAR]" ; controlToPopulate.add(myEle); for ( x = 0 ; x < ItemArray.length ; x++ ) { if ( GroupArray[x] == control.value ) { myEle = document.createElement("opción" ); myEle.valor = x; myEle.text = ItemArray[x]; controlToPopulate.add(myEle); } } } // Fin --> </script> <form name=myChoices> <table align="center"> <tr> <td> <SELECT id=firstChoice name=firstChoice onchange="selectChange(this, myChoices. secondChoice, arrItems1, arrItemsGrp1);"> <opción valor=0 SELECCIONADO>[SELECT]</opción> <opción valor=1>Tierra</opción> <opción valor=2>Mar</opción> <opción valor=3 >Aire</option> </SELECT> </TD><TD> <SELECT id=segundoChoice nombre=segundoChoice onchange="selectChange(this, myChoices.thirdChoice, arrItems2, arrItemsGrp2);"> </SELECT> <SELECT id =tercera opción nombre=tercera opción> </SELECT> </TD> </TR> </TABLE> </form>