上海水磨按摩什么区别:写一个JAVA脚本,怎样使复选框按情况而选项不同

<HTML>

上海水磨按摩什么区别:写一个JAVA脚本,怎样使复选框按情况而选项不同

<HEAD>

<TITLE> New Document </TITLE>

<script>

function show()

{

var selobj=document.all.a1;

var v1=selobj.options[selobj.selectedIndex].value;

if(v1==1)

{

var curobj=document.all.new1;

if(curobj)

curobj.removeNode(true);

var newsel=document.createElement(\”SELECT\”);

newsel.id=\”new1\”;

newsel.add(new Option(\”中国\”,\”10\”));

newsel.add(new Option(\”韩国\”,\”11\”));

newsel.add(new Option(\”印度\”,\”12\”));

document.body.appendChild(newsel);

}

if(v1==2)

{

var curobj=document.all.new1;

if(curobj)

curobj.removeNode(true);

var newsel=document.createElement(\”SELECT\”);

newsel.id=\”new1\”;

newsel.add(new Option(\”法国\”,\”20\”));

newsel.add(new Option(\”德国\”,\”21\”));

newsel.add(new Option(\”英国\”,\”22\”));

document.body.appendChild(newsel);

}

}

</script>

</HEAD>

<BODY>

<select name=\”a1\” onchange=\”show();\”>

<option value=1>亚洲</option>

<option value=2>欧洲</option>

</select>

</BODY>

</HTML>

你可以用AJAX 实现啊我这里有javascript的例子上海水磨按摩什么区别:这是一个叫pro_city_district.js脚本 :var CityList = [\”北京\”,\”上海\”,\”广州\”,\”深圳\”,\”南京\”,\”苏州\”,\”无锡\”,\”杭州\”,\”厦门\”,\”青岛\”,\”武汉\”,\”天津\”,\”济南\”,\”重庆\”,\”成都\”,\”长沙\”,\”沈阳\”,\”西安\”,\”福州\”,\”宁波\”,\”东莞\”,\”昆山\”,\”义乌\”,\”其他\”];var DisList = new Array();DisList[\”其他\”]= [\”无锡\”,\”昆山\”,\”大连\”,\”珠海\”,\”郑州\”,\”徐州\”,\”贵阳\”,\”昆明\”,\”太原\”,\”烟台\”,\”南昌\”,\”常州\”,\”海口\”,\”扬州\”];DisList[\”北京\”]= [\”东城区\”, \”西城区\”, \”崇文区\”, \”宣武区\”, \”朝阳区\”, \”海淀区\”, \”丰台区\”, \”石景山区\”, \”房山区\”, \”通州区\”, \”顺义区\”, \”门头沟区\”, \”昌平区\”, \”大兴区\”, \”怀柔区\”, \”平谷区\”, \”其它\”];DisList[\”上海\”]= [\”黄浦区\”, \”卢湾区\”, \”徐汇区\”, \”长宁区\”, \”静安区\”, \”普陀区\”, \”闸北区\”, \”虹口区\”, \”杨浦区\”, \”宝山区\”, \”闵行区\”, \”嘉定区\”, \”松江区\”, \”金山区\”, \”青浦区\”, \”浦东新区\”, \”南汇区\”, \”奉贤区\”, \”其它\”];DisList[\”天津\”]= [\”和平区\”, \”河东区\”, \”河西区\”, \”南开区\”, \”河北区\”, \”红桥区\”, \”塘沽区\”, \”汉沽区\”, \”大港区\”, \”东丽区\”, \”西青区\”, \”北辰区\”, \”津南区\”, \”武清区\”, \”宝坻区\”, \”其它\”];DisList[\”重庆\”]= [\”渝中区\”, \”大渡口区\”, \”江北区\”, \”沙坪坝区\”, \”九龙坡区\”, \”南岸区\”, \”北碚区\”, \”万盛区\”, \”双桥区\”, \”渝北区\”, \”巴南区\”, \”万州区\”, \”涪陵区\”, \”黔江区\”, \”其它\”];DisList[\”义乌\”]= [\”城区\”, \”其它\”];DisList[\”石家庄\”]= [\”长安区\”, \”桥东区\”, \”桥西区\”, \”新华区\”, \”裕华区\”, \”井陉矿区\”, \”其它\”];DisList[\”唐山\”]= [\”路北区\”, \”路南区\”, \”古冶区\”, \”开平区\”, \”丰南区\”, \”丰润区\”, \”其它\”];DisList[\”秦皇岛\”]= [\”海港区\”, \”山海关区\”, \”北戴河区\”, \”其它\”];DisList[\”邯郸\”]= [\”从台区\”, \”复兴区\”, \”邯山区\”, \”其它\”];DisList[\”邢台\”]= [\”桥东区\”, \”桥西区\”, \”其它\”];DisList[\”保定\”]= [\”新市区\”, \”南市区\”, \”北市区\”, \”其它\”];DisList[\”张家口\”]= [\”桥西区\”, \”桥东区\”, \”宣化区\”, \”其它\”];DisList[\”承德\”]= [\”双桥区\”, \”双滦区\”, \”其它\”];DisList[\”沧州\”]= [\”运河区\”, \”新华区\”, \”其它\”];DisList[\”廊坊\”]= [\”安次区\”, \”广阳区\”, \”其它\”];DisList[\”衡水\”]= [\”桃城区\”, \”其它\”];DisList[\”太原\”]= [\”杏花岭区\”, \”小店区\”, \”迎泽区\”, \”尖草坪区\”, \”万柏林区\”, \”晋源区\”, \”其它\”];DisList[\”大同\”]= [\”城区\”, \”矿区\”, \”南郊区\”, \”新荣区\”, \”其它\”];DisList[\”阳泉\”]= [\”城区\”, \”矿区\”, \”其它\”];DisList[\”长治\”]= [\”城区\”, \”其它\”];DisList[\”晋城\”]= [\”城区\”, \”其它\”];DisList[\”朔州\”]= [\”朔城区\”, \”平鲁区\”, \”其它\”];DisList[\”晋中\”]= [\”榆次区\”, \”其它\”];DisList[\”忻州\”]= [\”忻府区\”, \”其它\”];DisList[\”临汾\”]= [\”尧都区\”, \”其它\”];DisList[\”运城\”]= [\”盐湖区\”, \”其它\”];DisList[\”吕梁\”]= [\”离石区\”, \”其它\”];DisList[\”呼和浩特\”]= [\”回民区\”, \”玉泉区\”, \”新城区\”, \”赛罕区\”, \”其它\”];DisList[\”包头\”]= [\”昆都仑区\”, \”青山区\”, \”东河区\”, \”九原区\”, \”石拐区\”, \”白云矿区\”, \”其它\”];DisList[\”乌海\”]= [\”海勃湾区\”, \”乌达区\”, \”海南区\”, \”其它\”];DisList[\”赤峰\”]= [\”红山区\”, \”元宝山区\”, \”松山区\”, \”其它\”];DisList[\”通辽\”]= [\”科尔沁区\”, \”其它\”];DisList[\”鄂尔多斯\”]= [\”东胜区\”, \”其它\”];DisList[\”呼伦贝尔\”]= [\”海拉尔区\”, \”其它\”];DisList[\”乌兰察布\”]= [\”集宁区\”, \”其它\”];DisList[\”巴彦淖尔\”]= [\”临河区\”, \”其它\”];DisList[\”沈阳\”]= [\”沈河区\”, \”皇姑区\”, \”和平区\”, \”大东区\”, \”铁西区\”, \”苏家屯区\”, \”东陵区\”, \”新城子区\”, \”于洪区\”, \”其它\”];DisList[\”大连\”]= [\”西岗区\”, \”中山区\”, \”沙河口区\”, \”甘井子区\”, \”旅顺口区\”, \”金州区\”, \”开发区\”, \”其它\”];DisList[\”鞍山\”]= [\”铁东区\”, \”铁西区\”, \”立山区\”, \”千山区\”, \”其它\”];DisList[\”抚顺\”]= [\”新抚区\”, \”东洲区\”, \”望花区\”, \”顺城区\”, \”其它\”];DisList[\”本溪\”]= [\”平山区\”, \”明山区\”, \”溪湖区\”, \”南芬区\”, \”其它\”];DisList[\”丹东\”]= [\”振兴区\”, \”元宝区\”, \”振安区\”, \”其它\”];DisList[\”锦州\”]= [\”太和区\”, \”古塔区\”, \”凌河区\”, \”其它\”];DisList[\”葫芦岛\”]= [\”龙港区\”, \”南票区\”, \”连山区\”, \”其它\”];DisList[\”营口\”]= [\”站前区\”, \”西市区\”, \”鲅鱼圈区\”, \”老边区\”, \”其它\”];DisList[\”盘锦\”]= [\”双台子区\”, \”兴隆台区\”, \”其它\”];DisList[\”阜新\”]= [\”海州区\”, \”新邱区\”, \”太平区\”, \”清河门区\”, \”细河区\”, \”其它\”];DisList[\”辽阳\”]= [\”白塔区\”, \”文圣区\”, \”宏伟区\”, \”太子河区\”, \”弓长岭区\”, \”其它\”];DisList[\”铁岭\”]= [\”银州区\”, \”清河区\”, \”其它\”];DisList[\”朝阳\”]= [\”双塔区\”, \”龙城区\”, \”其它\”];DisList[\”长春\”]= [\”朝阳区\”, \”宽城区\”, \”二道区\”, \”南关区\”, \”绿园区\”, \”双阳区\”, \”其它\”];DisList[\”吉林\”]= [\”船营区\”, \”昌邑区\”, \”龙潭区\”, \”丰满区\”, \”其它\”];DisList[\”四平\”]= [\”铁西区\”, \”铁东区\”, \”其它\”];DisList[\”辽源\”]= [\”龙山区\”, \”西安区\”, \”其它\”];DisList[\”通化\”]= [\”东昌区\”, \”二道江区\”, \”其它\”];DisList[\”白山\”]= [\”八道江区\”, \”其它\”];DisList[\”松原\”]= [\”宁江区\”, \”其它\”];DisList[\”白城\”]= [\”洮北区\”, \”其它\”];DisList[\”延吉\”]= [\”城区\”, \”其它\”];DisList[\”哈尔滨\”]= [\”道里区\”, \”南岗区\”, \”动力区\”, \”平房区\”, \”香坊区\”, \”松北区\”, \”呼兰区\”, \”道外区\”, \”其它\”];DisList[\”齐齐哈尔\”]= [\”龙沙区\”, \”昂昂溪区\”, \”铁峰区\”, \”建华区\”, \”富拉尔基区\”, \”碾子山区\”, \”其它\”];DisList[\”鹤岗\”]= [\”兴山区\”, \”工农区\”, \”南山区\”, \”兴安区\”, \”向阳区\”, \”东山区\”, \”其它\”];DisList[\”双鸭山\”]= [\”尖山区\”, \”岭东区\”, \”四方台区\”, \”宝山区\”, \”其它\”];DisList[\”鸡西\”]= [\”鸡冠区\”, \”恒山区\”, \”城子河区\”, \”滴道区\”, \”梨树区\”, \”麻山区\”, \”其它\”];DisList[\”大庆\”]= [\”萨尔图区\”, \”红岗区\”, \”龙凤区\”, \”让胡路区\”, \”大同区\”, \”其它\”];DisList[\”伊春\”]= [\”伊春区\”, \”其它\”];DisList[\”牡丹江\”]= [\”爱民区\”, \”东安区\”, \”阳明区\”, \”西安区\”, \”其它\”];DisList[\”佳木斯\”]= [\”前进区\”, \”永红区\”, \”向阳区\”, \”东风区\”, \”其它\”];DisList[\”七台河\”]= [\”桃山区\”, \”新兴区\”, \”茄子河区\”, \”其它\”];DisList[\”黑河\”]= [\”爱辉区\”, \”其它\”];DisList[\”绥化\”]= [\”北林区\”, \”其它\”];DisList[\”南京\”]= [\”玄武区\”, \”鼓楼区\”, \”建邺区\”, \”白下区\”, \”秦淮区\”, \”下关区\”, \”雨花台区\”, \”浦口区\”, \”栖霞区\”, \”大厂区\”, \”江宁区\”, \”其它\”];DisList[\”徐州\”]= [\”云龙区\”, \”鼓楼区\”, \”九里区\”, \”贾汪区\”, \”泉山区\”, \”其它\”];DisList[\”连云港\”]= [\”新浦区\”, \”连云区\”, \”海州区\”, \”其它\”];DisList[\”淮安\”]= [\”清河区\”, \”清浦区\”, \”楚州区\”, \”淮阴区\”, \”其它\”];DisList[\”宿迁\”]= [\”宿城区\”, \”其它\”];DisList[\”盐城\”]= [\”城区\”, \”其它\”];DisList[\”扬州\”]= [\”广陵区\”, \”维扬区\”, \”邗江区\”, \”其它\”];DisList[\”泰州\”]= [\”海陵区\”, \”高港区\”, \”其它\”];DisList[\”南通\”]= [\”崇川区\”, \”港闸区\”, \”其它\”];DisList[\”镇江\”]= [\”京口区\”, \”润州区\”, \”其它\”];DisList[\”常州\”]= [\”钟楼区\”, \”天宁区\”, \”戚墅堰区\”, \”其它\”];DisList[\”无锡\”]= [\”崇安区\”, \”北塘区\”, \”南长区\”, \”锡山区\”, \”惠山区\”, \”滨湖区\”, \”其它\”];DisList[\”苏州\”]= [\”沧浪区\”, \”金阊区\”, \”平江区\”, \”虎丘区\”, \”吴中区\”, \”相城区\”,\”工业园区\”,\”昆山市\”, \”其它\”];DisList[\”杭州\”]= [\”拱墅区\”, \”西湖区\”, \”上城区\”, \”下城区\”, \”江干区\”, \”滨江区\”, \”余杭区\”, \”萧山区\”, \”其它\”];DisList[\”宁波\”]= [\”海曙区\”, \”江东区\”, \”江北区\”, \”镇海区\”, \”北仑区\”, \”鄞州区\”, \”其它\”];DisList[\”温州\”]= [\”鹿城区\”, \”龙湾区\”, \”瓯海区\”, \”其它\”];DisList[\”嘉兴\”]= [\”秀城区\”, \”秀洲区\”, \”其它\”];DisList[\”湖州\”]= [\”吴兴区\”, \”南浔区\”, \”其它\”];DisList[\”绍兴\”]= [\”越城区\”, \”其它\”];DisList[\”金华\”]= [\”婺城区\”, \”金东区\”, \”其它\”];DisList[\”衢州\”]= [\”柯城区\”, \”衢江区\”, \”其它\”];DisList[\”舟山\”]= [\”定海区\”, \”普陀区\”, \”其它\”];DisList[\”台州\”]= [\”椒江区\”, \”黄岩区\”, \”路桥区\”, \”其它\”];DisList[\”丽水\”]= [\”莲都区\”, \”其它\”];DisList[\”合肥\”]= [\”庐阳区\”, \”瑶海区\”, \”蜀山区\”, \”包河区\”, \”其它\”];DisList[\”芜湖\”]= [\”镜湖区\”, \”新芜区\”, \”马塘区\”, \”鸠江区\”, \”其它\”];DisList[\”蚌埠\”]= [\”中市区\”, \”东市区\”, \”西市区\”, \”其它\”];DisList[\”淮南\”]= [\”田家庵区\”, \”大通区\”, \”谢家集区\”, \”八公山区\”, \”潘集区\”, \”其它\”];DisList[\”马鞍山\”]= [\”雨山区\”, \”花山区\”, \”金家庄区\”, \”其它\”];DisList[\”淮北\”]= [\”相山区\”, \”杜集区\”, \”烈山区\”, \”其它\”];DisList[\”铜陵\”]= [\”铜官山区\”, \”狮子山区\”, \”其它\”];DisList[\”安庆\”]= [\”迎江区\”, \”大观区\”, \”其它\”];DisList[\”黄山\”]= [\”屯溪区\”, \”黄山区\”, \”徽州区\”, \”其它\”];DisList[\”滁州\”]= [\”琅琊区\”, \”南谯区\”, \”其它\”];DisList[\”阜阳\”]= [\”颖州区\”, \”颖东区\”, \”颖泉区\”, \”其它\”];DisList[\”宿州\”]= [\”埇桥区\”, \”其它\”];DisList[\”巢湖\”]= [\”居巢区\”, \”其它\”];DisList[\”六安\”]= [\”金安区\”, \”裕安区\”, \”其它\”];DisList[\”亳州\”]= [\”谯城区\”, \”其它\”];DisList[\”宣城\”]= [\”宣州区\”, \”其它\”];DisList[\”池州\”]= [\”贵池区\”, \”其它\”];DisList[\”福州\”]= [\”鼓楼区\”, \”台江区\”, \”仓山区\”, \”马尾区\”, \”晋安区\”, \”其它\”];DisList[\”厦门\”]= [\”集美区\”, \”海沧区\”, \”思明区\”, \”湖里区\”, \”同安区\”, \”翔安区\”, \”其它\”];DisList[\”三明\”]= [\”梅列区\”, \”三元区\”, \”其它\”];DisList[\”莆田\”]= [\”城厢区\”, \”涵江区\”, \”荔城区\”, \”秀屿区\”, \”其它\”];DisList[\”泉州\”]= [\”鲤城区\”, \”丰泽区\”, \”洛江区\”, \”泉港区\”, \”晋安区\”, \”其它\”];DisList[\”漳州\”]= [\”芗城区\”, \”龙文区\”, \”其它\”];DisList[\”南平\”]= [\”延平区\”, \”其它\”];DisList[\”宁德\”]= [\”蕉城区\”, \”其它\”];DisList[\”南昌\”]= [\”东湖区\”, \”西湖区\”, \”青云谱区\”, \”湾里区\”, \”青山湖区\”, \”其它\”];DisList[\”景德镇\”]= [\”珠山区\”, \”昌江区\”, \”其它\”];DisList[\”萍乡\”]= [\”安源区\”, \”湘东区\”, \”其它\”];DisList[\”新余\”]= [\”渝水区\”, \”其它\”];DisList[\”九江\”]= [\”浔阳区\”, \”庐山区\”, \”其它\”];DisList[\”鹰潭\”]= [\”月湖区\”, \”其它\”];DisList[\”赣州\”]= [\”章贡区\”, \”其它\”];DisList[\”吉安\”]= [\”吉州区\”, \”青原区\”, \”其它\”];DisList[\”宜春\”]= [\”袁州区\”, \”其它\”];DisList[\”抚州\”]= [\”临川区\”, \”其它\”];DisList[\”上饶\”]= [\”信州区\”, \”其它\”];DisList[\”济南\”]= [\”市中区\”, \”历下区\”, \”天桥区\”, \”槐荫区\”, \”历城区\”, \”长清区\”, \”其它\”];DisList[\”青岛\”]= [\”市南区\”, \”市北区\”, \”城阳区\”, \”四方区\”, \”李沧区\”, \”黄岛区\”, \”崂山区\”, \”其它\”];DisList[\”淄博\”]= [\”张店区\”, \”临淄区\”, \”淄川区\”, \”博山区\”, \”周村区\”, \”其它\”];DisList[\”枣庄\”]= [\”市中区\”, \”山亭区\”, \”峄城区\”, \”台儿庄区\”, \”薛城区\”, \”其它\”];DisList[\”东营\”]= [\”东营区\”, \”河口区\”, \”其它\”];DisList[\”潍坊\”]= [\”潍城区\”, \”寒亭区\”, \”坊子区\”, \”奎文区\”, \”其它\”];DisList[\”烟台\”]= [\”芝罘区\”, \”福山区\”, \”牟平区\”, \”莱山区\”, \”其它\”];DisList[\”威海\”]= [\”环翠区\”, \”其它\”];DisList[\”济宁\”]= [\”市中区\”, \”任城区\”, \”其它\”];DisList[\”泰安\”]= [\”泰山区\”, \”岱岳区\”, \”其它\”];DisList[\”日照\”]= [\”东港区\”, \”其它\”];DisList[\”莱芜\”]= [\”莱城区\”, \”钢城区\”, \”其它\”];DisList[\”德州\”]= [\”德城区\”, \”其它\”];DisList[\”临沂\”]= [\”兰山区\”, \”罗庄区\”, \”河东区\”, \”其它\”];DisList[\”聊城\”]= [\”东昌府区\”, \”其它\”];DisList[\”滨州\”]= [\”滨城区\”, \”其它\”];DisList[\”菏泽\”]= [\”牡丹区\”, \”其它\”];DisList[\”郑州\”]= [\”中原区\”, \”金水区\”, \”二七区\”, \”管城回族区\”, \”上街区\”, \”邙山区\”, \”其它\”];DisList[\”开封\”]= [\”鼓楼区\”, \”龙亭区\”, \”顺河回族区\”, \”南关区\”, \”其它\”];DisList[\”洛阳\”]= [\”西工区\”, \”老城区\”, \”涧西区\”, \”瀍河回族区\”, \”洛龙区\”, \”吉利区\”, \”其它\”];DisList[\”平顶山\”]= [\”新华区\”, \”卫东区\”, \”湛河区\”, \”石龙区\”, \”其它\”];DisList[\”焦作\”]= [\”解放区\”, \”中站区\”, \”马村区\”, \”山阳区\”, \”其它\”];DisList[\”鹤壁\”]= [\”淇滨区\”, \”山城区\”, \”鹤山区\”, \”其它\”];DisList[\”新乡\”]= [\”新华区\”, \”红旗区\”, \”北站区\”, \”其它\”];DisList[\”安阳\”]= [\”北关区\”, \”文峰区\”, \”殷都区\”, \”龙安区\”, \”其它\”];DisList[\”濮阳\”]= [\”华龙区\”, \”其它\”];DisList[\”许昌\”]= [\”魏都区\”, \”其它\”];DisList[\”漯河\”]= [\”源汇区\”, \”郾城区\”, \”召陵区\”, \”其它\”];DisList[\”三门峡\”]= [\”湖滨区\”, \”其它\”];DisList[\”南阳\”]= [\”卧龙区\”, \”宛城区\”, \”其它\”];DisList[\”商丘\”]= [\”梁园区\”, \”睢阳区\”, \”其它\”];DisList[\”信阳\”]= [\”浉河区\”, \”平桥区\”, \”其它\”];DisList[\”周口\”]= [\”川汇区\”, \”其它\”];DisList[\”驻马店\”]= [\”驿城区\”, \”其它\”];DisList[\”武汉\”]= [\”江岸区\”, \”武昌区\”, \”江汉区\”, \”乔口区\”, \”汉阳区\”, \”青山区\”, \”洪山区\”, \”东西湖区\”, \”汉南区\”, \”蔡甸区\”, \”江夏区\”, \”黄陂区\”, \”新洲区\”, \”其它\”];DisList[\”黄石\”]= [\”黄石港区\”, \”石灰窑区\”, \”下陆区\”, \”铁山区\”, \”其它\”];DisList[\”襄樊\”]= [\”襄城区\”, \”樊城区\”, \”襄阳区\”, \”其它\”];DisList[\”十堰\”]= [\”张湾区\”, \”茅箭区\”, \”其它\”];DisList[\”荆州\”]= [\”沙市区\”, \”荆州区\”, \”其它\”];DisList[\”宜昌\”]= [\”西陵区\”, \”伍家岗区\”, \”点军区\”, \”猇亭区\”, \”夷陵区\”, \”其它\”];DisList[\”荆门\”]= [\”东宝区\”, \”掇刀区\”, \”其它\”];DisList[\”鄂州\”]= [\”鄂城区\”, \”华容区\”, \”梁子湖区\”, \”其它\”];DisList[\”孝感\”]= [\”孝南区\”, \”其它\”];DisList[\”黄冈\”]= [\”黄州区\”, \”其它\”];DisList[\”咸宁\”]= [\”咸安区\”, \”其它\”];DisList[\”随州\”]= [\”曾都区\”, \”其它\”];DisList[\”长沙\”]= [\”岳麓区\”, \”芙蓉区\”, \”天心区\”, \”开福区\”, \”雨花区\”, \”其它\”];DisList[\”株洲\”]= [\”天元区\”, \”荷塘区\”, \”芦淞区\”, \”石峰区\”, \”其它\”];DisList[\”湘潭\”]= [\”雨湖区\”, \”岳塘区\”, \”其它\”];DisList[\”衡阳\”]= [\”石鼓区\”, \”雁峰区\”, \”珠晖区\”, \”蒸湘区\”, \”南岳区\”, \”其它\”];DisList[\”邵阳\”]= [\”双清区\”, \”大祥区\”, \”北塔区\”, \”其它\”];DisList[\”岳阳\”]= [\”岳阳楼区\”, \”君山区\”, \”云溪区\”, \”其它\”];DisList[\”常德\”]= [\”武陵区\”, \”鼎城区\”, \”其它\”];DisList[\”张家界\”]= [\”永定区\”, \”武陵源区\”, \”其它\”];DisList[\”益阳\”]= [\”赫山区\”, \”资阳区\”, \”其它\”];DisList[\”郴州\”]= [\”北湖区\”, \”苏仙区\”, \”其它\”];DisList[\”永州\”]= [\”冷水滩区\”, \”芝山区\”, \”其它\”];DisList[\”怀化\”]= [\”鹤城区\”, \”其它\”];DisList[\”娄底\”]= [\”娄星区\”, \”其它\”];DisList[\”吉首\”]= [\”城区\”, \”其它\”];DisList[\”广州\”]= [\”越秀区\”, \”东山区\”, \”海珠区\”, \”荔湾区\”, \”天河区\”, \”白云区\”, \”黄埔区\”, \”芳村区\”, \”花都区\”, \”番禺区\”, \”其它\”];DisList[\”深圳\”]= [\”福田区\”, \”罗湖区\”, \”南山区\”, \”宝安区\”, \”龙岗区\”, \”盐田区\”, \”其它\”];DisList[\”珠海\”]= [\”香洲区\”, \”斗门区\”, \”金湾区\”, \”其它\”];DisList[\”汕头\”]= [\”潮阳区\”, \”潮南区\”, \”澄海区\”, \”濠江区\”, \”金平区\”, \”龙湖区\”, \”其它\”];DisList[\”韶关\”]= [\”北江区\”, \”浈江区\”, \”武江区\”, \”其它\”];DisList[\”河源\”]= [\”源城区\”, \”其它\”];DisList[\”梅州\”]= [\”梅江区\”, \”其它\”];DisList[\”惠州\”]= [\”惠城区\”, \”其它\”];DisList[\”汕尾\”]= [\”城区\”, \”其它\”];DisList[\”东莞\”]= [\”城区\”, \”其它\”];DisList[\”中山\”]= [\”城区\”, \”其它\”];DisList[\”江门\”]= [\”江海区\”, \”蓬江区\”, \”新会区\”, \”其它\”];DisList[\”佛山\”]= [\”顺德区\”, \”南海区\”, \”三水区\”, \”高明区\”, \”禅城区\”, \”其它\”];DisList[\”阳江\”]= [\”江城区\”, \”其它\”];DisList[\”湛江\”]= [\”赤坎区\”, \”霞山区\”, \”坡头区\”, \”麻章区\”, \”其它\”];DisList[\”茂名\”]= [\”茂南区\”, \”茂港区\”, \”其它\”];DisList[\”肇庆\”]= [\”端州区\”, \”鼎湖区\”, \”其它\”];DisList[\”清远\”]= [\”清城区\”, \”其它\”];DisList[\”潮州\”]= [\”湘桥区\”, \”其它\”];DisList[\”揭阳\”]= [\”榕城区\”, \”其它\”];DisList[\”云浮\”]= [\”云城区\”, \”其它\”];DisList[\”南宁\”]= [\”新城区\”, \”兴宁区\”, \”永新区\”, \”城北区\”, \”江南区\”, \”高新区\”, \”其它\”];DisList[\”柳州\”]= [\”城中区\”, \”鱼峰区\”, \”柳北区\”, \”柳南区\”, \”其它\”];DisList[\”桂林\”]= [\”秀峰区\”, \”叠彩区\”, \”象山区\”, \”七星区\”, \”雁山区\”, \”其它\”];DisList[\”梧州\”]= [\”万秀区\”, \”蝶山区\”, \”其它\”];DisList[\”北海\”]= [\”海城区\”, \”银海区\”, \”铁山港区\”, \”其它\”];DisList[\”防城港\”]= [\”港口区\”, \”防城区\”, \”其它\”];DisList[\”钦州\”]= [\”钦南区\”, \”钦北区\”, \”其它\”];DisList[\”贵港\”]= [\”港北区\”, \”港南区\”, \”其它\”];DisList[\”玉林\”]= [\”玉州区\”, \”其它\”];DisList[\”海口\”]= [\”秀英区\”, \”龙华区\”, \”琼山区\”, \”美兰区\”, \”其它\”];DisList[\”三亚\”]= [\”城区\”, \”其它\”];DisList[\”儋州\”]= [\”城区\”, \”其它\”];DisList[\”五指山\”]= [\”城区\”, \”其它\”];DisList[\”琼海\”]= [\”城区\”, \”其它\”];DisList[\”成都\”]= [\”青羊区\”, \”锦江区\”, \”金牛区\”, \”武侯区\”, \”成华区\”, \”龙泉驿区\”, \”青白江区\”, \”新都区\”, \”其它\”];DisList[\”自贡\”]= [\”大安区\”, \”自流井区\”, \”贡井区\”, \”沿滩区\”, \”其它\”];DisList[\”攀枝花\”]= [\”东区\”, \”西区\”, \”仁和区\”, \”其它\”];DisList[\”泸州\”]= [\”江阳区\”, \”纳溪区\”, \”龙马潭区\”, \”其它\”];DisList[\”德阳\”]= [\”旌阳区\”, \”其它\”];DisList[\”绵阳\”]= [\”涪城区\”, \”游仙区\”, \”其它\”];DisList[\”广元\”]= [\”市中区\”, \”元坝区\”, \”朝天区\”, \”其它\”];DisList[\”遂宁\”]= [\”市中区\”, \”其它\”];DisList[\”内江\”]= [\”市中区\”, \”东兴区\”, \”其它\”];DisList[\”乐山\”]= [\”市中区\”, \”五通桥区\”, \”沙湾区\”, \”金口河区\”, \”其它\”];DisList[\”南充\”]= [\”顺庆区\”, \”高坪区\”, \”嘉陵区\”, \”其它\”];DisList[\”宜宾\”]= [\”翠屏区\”, \”其它\”];DisList[\”广安\”]= [\”广安区\”, \”其它\”];DisList[\”达州\”]= [\”通川区\”, \”其它\”];DisList[\”巴中\”]= [\”巴州区\”, \”其它\”];DisList[\”雅安\”]= [\”雨城区\”, \”其它\”];DisList[\”眉山\”]= [\”东坡区\”, \”其它\”];DisList[\”资阳\”]= [\”雁江区\”, \”其它\”];DisList[\”贵阳\”]= [\”南明区\”, \”云岩区\”, \”花溪区\”, \”乌当区\”, \”白云区\”, \”小河区\”, \”其它\”];DisList[\”六盘水\”]= [\”钟山区\”, \”其它\”];DisList[\”遵义\”]= [\”红花岗区\”, \”其它\”];DisList[\”安顺\”]= [\”西秀区\”, \”其它\”];DisList[\”昆明\”]= [\”盘龙区\”, \”五华区\”, \”官渡区\”, \”西山区\”, \”东川区\”, \”其它\”];DisList[\”曲靖\”]= [\”麒麟区\”, \”其它\”];DisList[\”玉溪\”]= [\”红塔区\”, \”其它\”];DisList[\”保山\”]= [\”隆阳区\”, \”其它\”];DisList[\”昭通\”]= [\”昭阳区\”, \”其它\”];DisList[\”思茅\”]= [\”翠云区\”, \”其它\”];DisList[\”丽江\”]= [\”古城区\”, \”其它\”];DisList[\”大理\”]= [\”城区\”,\”其它\”];DisList[\”拉萨\”]= [\”城关区\”, \”其它\”];DisList[\”西安\”]= [\”莲湖区\”, \”新城区\”, \”碑林区\”, \”雁塔区\”, \”灞桥区\”, \”未央区\”, \”阎良区\”, \”临潼区\”, \”其它\”];DisList[\”铜川\”]= [\”王益区\”, \”印台区\”, \”其它\”];DisList[\”宝鸡\”]= [\”渭滨区\”, \”金台区\”, \”其它\”];DisList[\”咸阳\”]= [\”秦都区\”, \”渭城区\”, \”杨陵区\”, \”其它\”];DisList[\”渭南\”]= [\”临渭区\”, \”其它\”];DisList[\”延安\”]= [\”宝塔区\”, \”其它\”];DisList[\”汉中\”]= [\”汉台区\”, \”其它\”];DisList[\”榆林\”]= [\”榆阳区\”, \”其它\”];DisList[\”安康\”]= [\”汉滨区\”, \”其它\”];DisList[\”商洛\”]= [\”商州区\”, \”其它\”];DisList[\”兰州\”]= [\”城关区\”, \”七里河区\”, \”西固区\”, \”安宁区\”, \”红古区\”, \”其它\”];DisList[\”金昌\”]= [\”金川区\”, \”其它\”];DisList[\”白银\”]= [\”白银区\”, \”平川区\”, \”其它\”];DisList[\”天水\”]= [\”秦城区\”, \”北道区\”, \”其它\”];DisList[\”嘉峪关\”]= [\”城区\”, \”其它\”];DisList[\”武威\”]= [\”凉州区\”, \”其它\”];DisList[\”定西\”]= [\”定西区\”, \”其它\”];DisList[\”平凉\”]= [\”崆峒区\”, \”其它\”];DisList[\”庆阳\”]= [\”西峰区\”, \”其它\”];DisList[\”张掖\”]= [\”甘州区\”, \”其它\”];DisList[\”酒泉\”]= [\”肃州区\”, \”其它\”];DisList[\”银川\”]= [\”西夏区\”, \”金凤区\”, \”兴庆区\”, \”其它\”];DisList[\”石嘴山\”]= [\”大武口区\”, \”惠农区\”, \”石炭井区\”, \”其它\”];DisList[\”吴忠\”]= [\”利通区\”, \”其它\”];DisList[\”固原\”]= [\”原州区\”, \”其它\”];DisList[\”昆山\”]= [\”昆山市区\”, \”其它\”];DisList[\”西宁\”]= [\”城中区\”, \”城东区\”, \”城西区\”, \”城北区\”, \”其它\”];DisList[\”乌鲁木齐\”]= [\”天山区\”, \”沙依巴克区\”, \”新市区\”, \”水磨沟区\”, \”头屯河区\”, \”达坂城区\”, \”东山区\”, \”其它\”];DisList[\”克拉玛依\”]= [\”克拉玛依区\”, \”独山子区\”, \”白碱滩区\”, \”乌尔禾区\”, \”其它\”];function removeOptions(optionMenu){ i = optionMenu.options.length; while (i>=0){ optionMenu.options.remove(i); i–; }}function addOptions(optionList,optionMenu){ var i = 0; removeOptions(optionMenu); optionMenu.options[0] = new Option(\”请选择\”,\”请选择\”); for (i = 0;i < optionList.length; i++) optionMenu.options[i+1] = new Option(optionList[i],optionList[i]);}function addOptions2(optionList, optionMenu){ var i = 0; removeOptions(optionMenu); optionMenu.options[0] = new Option(\”不限\”,\”不限\”); for (i = 0;i < optionList.length; i++) optionMenu.options[i+1] = new Option(optionList[i],optionList[i]);}先引用:<SCRIPT language=JavaScript src=\”pro_city_district.js\” type=text/javascript></SCRIPT>以下是调用的:<select class=\”select1\” name=\”city\” id=\”city\” onChange=\”addOptions(DisList[this.value],document.form1.district)\”> <option value=\”城市\” selected>城市</option> <script> //生成所有城市的名称 for(var i = 0;i<CityList.length;i++) document.writeln (\”<option value=\\\”\”+ CityList[i] + \”\\\”>\” + CityList[i] + \”</option>\”); </script> </select> <select class=\”select1\” name=\”district\” id=\”district\”> <option value=\”区域\” selected>区域</option> </select>

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注