高分找人做select三级关联
答案:2 悬赏:70 手机版
解决时间 2021-07-25 21:13
- 提问者网友:浮克旳回音
- 2021-07-24 20:38
50分找人做select三级关联
最佳答案
- 五星知识达人网友:佘樂
- 2021-07-24 21:55
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//CN">
<HTML>
<HEAD>
<TITLE> Q2306615 </TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META NAME="Generator" CONTENT="Microsoft Notepad">
<META NAME="Author" CONTENT="Topmonkey">
<META NAME="Description" CONTENT="Re: Q2306615">
</HEAD>
<BODY bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<SCRIPT LANGUAGE="JavaScript">
<!--
var city = new Array();
city[0] = new Array('绍兴','丽水','衢州','金华','台州','舟山','湖州','嘉兴','温州','杭州');
city[1] = new Array('忻州','运城','临汾','离石','榆次','朔州','晋城','长治','大同','阳泉','太原');
city[2] = new Array('重庆');
city[3] = new Array('六盘水','兴义','铜仁','凯里','毕节','都匀','安顺','遵义','贵阳');
city[4] = new Array('信阳','河南周口','河南商丘','驻马店','河南南阳','三门峡','濮阳','河南漯河','鹤壁','河南焦作','许昌','平顶山','安阳','洛阳','新乡','开封','郑州');
city[5] = new Array('胥浦','宿迁','泰州','南通','淮安','南京','盐城','扬州','连云港','徐州','常州','镇江','无锡','苏州');
city[6] = new Array('固原','石嘴山','吴忠','银川');
city[7] = new Array('张家口','承德','廊坊','保定','沧州','衡水','邢台','邯郸','秦皇岛','唐山','石家庄');
city[8] = new Array('石河子','和田','阿克苏','喀什','哈密','巴州','博州','阿勒泰','塔城','伊犁','吐鲁番','昌吉','克拉玛依','乌鲁木齐');
city[9] = new Array('成都','凉山州','雅安地区','巴中地区','达州市','广安市','南充市','宜宾市','眉山市','遂宁市','广元市','绵阳市','内江市','乐山市','德阳市','泸州市','自贡市','攀枝花');
city[10] = new Array('莱芜','日照','东营','威海','滨州','德州','聊城','临沂','荷泽','济宁','潍坊','烟台','枣庄','泰安','淄博','济南');
city[11] = new Array('大兴安岭','黑河','绥化','七台河','伊春','双鸭山','鸡西','鹤岗','大庆','佳木斯','牡丹江','齐齐哈尔','哈尔滨');
city[12] = new Array('上海');
city[13] = new Array('天津');
city[14] = new Array('青海');
city[15] = new Array('海南');
city[16] = new Array('上饶','抚州','赣州','吉安','宜春','九江','鹰潭','新余','萍乡','景德镇','南昌');
city[17] = new Array('长春','松原','延边','白山','通化','白城','四平','辽源','吉林');
city[18] = new Array('厦门');
city[19] = new Array('大连');
city[20] = new Array('酒泉','武威','天水','金昌','白银','兰州','嘉峪关');
city[21] = new Array('北京');
city[22] = new Array('河池','玉林','百色','北海','柳州','梧州','桂林','南宁');
city[23] = new Array('宁波');
city[24] = new Array('龙岩','漳州','泉州','宁德','南平','莆田','三明','福州');
city[25] = new Array('葫芦岛','盘锦','朝阳','铁岭','辽阳','阜新','营口','锦州','丹东','本溪','抚顺','鞍山','沈阳');
city[26] = new Array('深圳');
city[27] = new Array('西安','榆林','延安','商洛','安康','汉中','渭南','咸阳','宝鸡','铜川');
city[28] = new Array('湘西自治州','怀化','娄底','益阳','郴州','永州','张家界','常德','岳阳','邵阳','衡阳','湘潭','株洲','长沙');
city[29] = new Array('广州','云浮','揭阳','清远','肇庆','茂名','湛江','阳江','佛山','江门','中山','东莞','汕尾','惠州','梅州','河源','韶关','潮州','汕头','珠海');
city[30] = new Array('青岛');
city[31] = new Array('宣城','池州','巢湖','六安','滁州','宿县','阜阳','黄山','安庆','铜陵','芜湖','马鞍山','淮北','淮南','蚌埠','合肥');
city[32] = new Array('阿盟','巴盟','伊盟','乌盟','锡盟','哲盟','兴安盟','呼盟','满洲里','赤峰','乌海','包头','呼和浩特');
city[33] = new Array('临沧','玉溪','楚雄','大理','中甸','怒江','丽江','德宏','保山','版纳','思茅','红河','文山','曲靖','昭通','昆明');
city[34] = new Array('咸宁','恩施','黄冈','荆州','孝感','鄂州','十堰','武汉','荆门','随州','襄樊','黄石');
function provinceChange(pid){
if(pid == "noselected"){
selCity.selectedIndex = 0;
delCity.length = 1;
}
else{
for(var i=0;i<city[pid].length;i++){
selCity.length = i + 2;
selCity.options[i + 1].text = city[pid][i];
}
}
}
//-->
</SCRIPT>
<SELECT name=selProvince onchange="provinceChange(this.value)">
<OPTION selected value=noselected nowrap>---请选择---</OPTION>
<OPTION value=0 >浙江 </OPTION>
<OPTION value=1 >山西 </OPTION>
<OPTION value=2 >重庆 </OPTION>
<OPTION value=3 >贵州 </OPTION>
<OPTION value=4 >河南 </OPTION>
<OPTION value=5 >江苏 </OPTION>
<OPTION value=6 >宁夏 </OPTION>
<OPTION value=7 >河北 </OPTION>
<OPTION value=8 >新疆 </OPTION>
<OPTION value=9 >四川 </OPTION>
<OPTION value=10>山东 </OPTION>
<OPTION value=11>黑龙江 </OPTION>
<OPTION value=12>上海 </OPTION>
<OPTION value=13>天津 </OPTION>
<OPTION value=14>青海 </OPTION>
<OPTION value=15>海南 </OPTION>
<OPTION value=16>江西 </OPTION>
<OPTION value=17>吉林 </OPTION>
<OPTION value=18>厦门 </OPTION>
<OPTION value=19>大连 </OPTION>
<OPTION value=20>甘肃 </OPTION>
<OPTION value=21>北京 </OPTION>
<OPTION value=22>广西 </OPTION>
<OPTION value=23>宁波 </OPTION>
<OPTION value=24>福建 </OPTION>
<OPTION value=25>辽宁 </OPTION>
<OPTION value=26>深圳 </OPTION>
<OPTION value=27>陕西 </OPTION>
<OPTION value=28>湖南 </OPTION>
<OPTION value=29>广东 </OPTION>
<OPTION value=30>青岛 </OPTION>
<OPTION value=31>安徽 </OPTION>
<OPTION value=32>内蒙古 </OPTION>
<OPTION value=33>云南 </OPTION>
<OPTION value=34>湖北 </OPTION>
</SELECT>省
<SELECT NAME="selCity">
<OPTION value=0>---请选择---</OPTION>
</SELECT>
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE> Q2306615 </TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META NAME="Generator" CONTENT="Microsoft Notepad">
<META NAME="Author" CONTENT="Topmonkey">
<META NAME="Description" CONTENT="Re: Q2306615">
</HEAD>
<BODY bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<SCRIPT LANGUAGE="JavaScript">
<!--
var city = new Array();
city[0] = new Array('绍兴','丽水','衢州','金华','台州','舟山','湖州','嘉兴','温州','杭州');
city[1] = new Array('忻州','运城','临汾','离石','榆次','朔州','晋城','长治','大同','阳泉','太原');
city[2] = new Array('重庆');
city[3] = new Array('六盘水','兴义','铜仁','凯里','毕节','都匀','安顺','遵义','贵阳');
city[4] = new Array('信阳','河南周口','河南商丘','驻马店','河南南阳','三门峡','濮阳','河南漯河','鹤壁','河南焦作','许昌','平顶山','安阳','洛阳','新乡','开封','郑州');
city[5] = new Array('胥浦','宿迁','泰州','南通','淮安','南京','盐城','扬州','连云港','徐州','常州','镇江','无锡','苏州');
city[6] = new Array('固原','石嘴山','吴忠','银川');
city[7] = new Array('张家口','承德','廊坊','保定','沧州','衡水','邢台','邯郸','秦皇岛','唐山','石家庄');
city[8] = new Array('石河子','和田','阿克苏','喀什','哈密','巴州','博州','阿勒泰','塔城','伊犁','吐鲁番','昌吉','克拉玛依','乌鲁木齐');
city[9] = new Array('成都','凉山州','雅安地区','巴中地区','达州市','广安市','南充市','宜宾市','眉山市','遂宁市','广元市','绵阳市','内江市','乐山市','德阳市','泸州市','自贡市','攀枝花');
city[10] = new Array('莱芜','日照','东营','威海','滨州','德州','聊城','临沂','荷泽','济宁','潍坊','烟台','枣庄','泰安','淄博','济南');
city[11] = new Array('大兴安岭','黑河','绥化','七台河','伊春','双鸭山','鸡西','鹤岗','大庆','佳木斯','牡丹江','齐齐哈尔','哈尔滨');
city[12] = new Array('上海');
city[13] = new Array('天津');
city[14] = new Array('青海');
city[15] = new Array('海南');
city[16] = new Array('上饶','抚州','赣州','吉安','宜春','九江','鹰潭','新余','萍乡','景德镇','南昌');
city[17] = new Array('长春','松原','延边','白山','通化','白城','四平','辽源','吉林');
city[18] = new Array('厦门');
city[19] = new Array('大连');
city[20] = new Array('酒泉','武威','天水','金昌','白银','兰州','嘉峪关');
city[21] = new Array('北京');
city[22] = new Array('河池','玉林','百色','北海','柳州','梧州','桂林','南宁');
city[23] = new Array('宁波');
city[24] = new Array('龙岩','漳州','泉州','宁德','南平','莆田','三明','福州');
city[25] = new Array('葫芦岛','盘锦','朝阳','铁岭','辽阳','阜新','营口','锦州','丹东','本溪','抚顺','鞍山','沈阳');
city[26] = new Array('深圳');
city[27] = new Array('西安','榆林','延安','商洛','安康','汉中','渭南','咸阳','宝鸡','铜川');
city[28] = new Array('湘西自治州','怀化','娄底','益阳','郴州','永州','张家界','常德','岳阳','邵阳','衡阳','湘潭','株洲','长沙');
city[29] = new Array('广州','云浮','揭阳','清远','肇庆','茂名','湛江','阳江','佛山','江门','中山','东莞','汕尾','惠州','梅州','河源','韶关','潮州','汕头','珠海');
city[30] = new Array('青岛');
city[31] = new Array('宣城','池州','巢湖','六安','滁州','宿县','阜阳','黄山','安庆','铜陵','芜湖','马鞍山','淮北','淮南','蚌埠','合肥');
city[32] = new Array('阿盟','巴盟','伊盟','乌盟','锡盟','哲盟','兴安盟','呼盟','满洲里','赤峰','乌海','包头','呼和浩特');
city[33] = new Array('临沧','玉溪','楚雄','大理','中甸','怒江','丽江','德宏','保山','版纳','思茅','红河','文山','曲靖','昭通','昆明');
city[34] = new Array('咸宁','恩施','黄冈','荆州','孝感','鄂州','十堰','武汉','荆门','随州','襄樊','黄石');
function provinceChange(pid){
if(pid == "noselected"){
selCity.selectedIndex = 0;
delCity.length = 1;
}
else{
for(var i=0;i<city[pid].length;i++){
selCity.length = i + 2;
selCity.options[i + 1].text = city[pid][i];
}
}
}
//-->
</SCRIPT>
<SELECT name=selProvince onchange="provinceChange(this.value)">
<OPTION selected value=noselected nowrap>---请选择---</OPTION>
<OPTION value=0 >浙江 </OPTION>
<OPTION value=1 >山西 </OPTION>
<OPTION value=2 >重庆 </OPTION>
<OPTION value=3 >贵州 </OPTION>
<OPTION value=4 >河南 </OPTION>
<OPTION value=5 >江苏 </OPTION>
<OPTION value=6 >宁夏 </OPTION>
<OPTION value=7 >河北 </OPTION>
<OPTION value=8 >新疆 </OPTION>
<OPTION value=9 >四川 </OPTION>
<OPTION value=10>山东 </OPTION>
<OPTION value=11>黑龙江 </OPTION>
<OPTION value=12>上海 </OPTION>
<OPTION value=13>天津 </OPTION>
<OPTION value=14>青海 </OPTION>
<OPTION value=15>海南 </OPTION>
<OPTION value=16>江西 </OPTION>
<OPTION value=17>吉林 </OPTION>
<OPTION value=18>厦门 </OPTION>
<OPTION value=19>大连 </OPTION>
<OPTION value=20>甘肃 </OPTION>
<OPTION value=21>北京 </OPTION>
<OPTION value=22>广西 </OPTION>
<OPTION value=23>宁波 </OPTION>
<OPTION value=24>福建 </OPTION>
<OPTION value=25>辽宁 </OPTION>
<OPTION value=26>深圳 </OPTION>
<OPTION value=27>陕西 </OPTION>
<OPTION value=28>湖南 </OPTION>
<OPTION value=29>广东 </OPTION>
<OPTION value=30>青岛 </OPTION>
<OPTION value=31>安徽 </OPTION>
<OPTION value=32>内蒙古 </OPTION>
<OPTION value=33>云南 </OPTION>
<OPTION value=34>湖北 </OPTION>
</SELECT>省
<SELECT NAME="selCity">
<OPTION value=0>---请选择---</OPTION>
</SELECT>
</BODY>
</HTML>
全部回答
- 1楼网友:独钓一江月
- 2021-07-24 23:22
把关联内容贴出来
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯