日本語
<!-- 把报電影观看在<body> 地址中 --> <!-- http://www.downcodes.com --> <!-- bbs http://www.downcodes.com/bbs- - > <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var arrItems1 = new Array(); var arrItemsGrp1 = 新しい Array(); arrItems1[3] = "トラック"; arrItemsGrp1[3] = 1; arrItems1[4] = "トレーニング"; arrItemsGrp1[4] = 1; arrItems1[5] = "車"; arrItemsGrp1[5] = 1; arrItems1[6] = "ボート"; arrItemsGrp1[6] = 2; arrItems1[7] = "潜水艦"; arrItemsGrp1[7] = 2; arrItems1[0] = "平面"; arrItemsGrp1[0] = 3; arrItems1[1] = "超軽量"; arrItemsGrp1[1] = 3; arrItems1[2] = "グライダー"; arrItemsGrp1[2] = 3; var arrItems2 = 新しい Array(); var arrItemsGrp2 = 新しい Array(); arrItems2[21] = "747"; arrItemsGrp2[21] = 0 arrItems2[22] = "セスナ"; arrItemsGrp2[22] = 0 arrItems2[31] = "コルブ フライヤー"; arrItemsGrp2[31] = 1 arrItems2[34] = "キットフォックス"; arrItemsGrp2[34] = 1 arrItems2[35] = "シュヴィーツァー グライダー"; arrItemsGrp2[35] = 2 arrItems2[99] = "シボレー マリブ"; arrItemsGrp2[99] = 5 arrItems2[100] = "リンカーン LS"; arrItemsGrp2[100] = 5 arrItems2[57] = "BMW Z3"; arrItemsGrp2[57] = 5 arrItems2[101] = "F-150"; arrItemsGrp2[101] = 3 arrItems2[102] = "タホ"; arrItemsGrp2[102] = 3 arrItems2[103] = "貨物列車"; arrItemsGrp2[103] = 4 arrItems2[104] = "旅客列車"; arrItemsGrp2[104] = 4 arrItems2[105] = "石油タンカー"; arrItemsGrp2[105] = 6 arrItems2[106] = "漁船"; arrItemsGrp2[106] = 6 arrItems2[200] = "ロサンゼルスクラス"; arrItemsGrp2[200] = 7 arrItems2[201] = "キロクラス"; arrItemsGrp2[201] = 7 arrItems2[203] = "シーウルフ クラス"; arrItemsGrp2[203] = 7 関数 selectChange(control, controlToPopulate, ItemsArray, GroupArray) { var myEle ;変数 x ; // (var q=controlToPopulate.options.length;q>=0;q--) controlToPopulate.options[q]=null; の場合、2 番目のドロップダウン ボックスを空にします。 if (control.name == "firstChoice") { // (var q=myChoices.thirdChoice.options.length;q>=0;q--) myChoices.thirdChoice.options の選択肢の 3 番目のドロップダウン ボックスを空にします[q] = null; } // デフォルトの選択を追加します - 値がない場合 myEle = document.createElement("option") ; myEle.value = 0 ; myEle.text = "[選択]" ; controlToPopulate.add(myEle) ; for ( x = 0 ; x < itemArray.length ; x++ ) { if ( GroupArray[x] == control.value ) { myEle = document.createElement("option") ; myEle.value = x ; myEle.text = itemArray[x] ; controlToPopulate.add(myEle) ; } } } // 終了 --> </script> <form name=myChoices> <table align="center"> <tr> <td> <SELECT id=firstChoice name=firstChoice onchange="selectChange(this, myChoices. SecondChoice, arrItems1, arrItemsGrp1);"> <option value=0 SELECTED>[SELECT]</option> <option value=1>陸地</option> <option value=2>海</option> <option value=3 >Air</option> </SELECT> </TD><TD> <SELECT id=secondChoice name=secondChoice onchange="selectChange(this, myChoices.thirdChoice, arrItems2, arrItemsGrp2);"> </SELECT> <SELECT id = thirdChoice name= thirdChoice> </SELECT> </TD> </TR> </TABLE> </form>