var onecount; subcat = new Array(); subcat[0] = new Array("奥迪A4","奥迪","奥迪A4"); subcat[1] = new Array("奥迪A6","奥迪","奥迪A6"); subcat[2] = new Array("捷达","大众(一汽)","捷达"); subcat[3] = new Array("宝来","大众(一汽)","宝来"); onecount=3; function changelocation(locationid) { document.form1.select.length = 1; var locationid=locationid; var i; for (i=0;i < onecount; i++) { if (subcat[i][1] == locationid) { document.form1.select.options[document.form1.select.length] = new Option(subcat[i][0],subcat[i][2]); } } } 奥迪 现代 菲亚特系列 未指定小类 [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 国外javascript技术网站 国内javascript技术网站 国外的著名搜索引擎 Website Abstraction Dynamicdrive.com javascript <!-- /* Double Combo Script Credit By Website Abstraction (www.wsabstract.com) Over 200+ free javascripts here! */ var groups=document.doublecombo.example.options.length var group=new Array(groups) for (i=0; i<groups; i++) group[i]=new Array() group[0][0]=new Option("Website Abstraction","http://wsabstract.com") group[0][1]=new Option("Dynamicdrive.com","http://www.dynamicdrive.com") group[0][2]=new Option("javascript","http://javascript.internet.com") group[1][0]=new Option("万旭javascript仓库","http://www.wanxu.com") group[1][1]=new Option("javascript2000","http://www.javascript2000.com") group[1][2]=new Option("无忧脚本","http://www.51js.com") group[2][0]=new Option("Hotbot","http://www.hotbot.com") group[2][1]=new Option("Infoseek","http://www.infoseek.com") group[2][2]=new Option("Excite","http://www.excite.com") group[2][3]=new Option("Lycos","http://www.lycos.com") var temp=document.doublecombo.stage2 function redirect(x){ for (m=temp.options.length-1;m>0;m--) temp.options[m]=null for (i=0;i<group[x].length;i++){ temp.options[i]=new Option(group[x][i].text,group[x][i].value) } temp.options[0].selected=true } function go(){ location=temp.options[temp.selectedIndex].value } //--> [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]