省市下拉列表,通過js數(shù)組實(shí)現(xiàn)全國(guó)省市的下拉列表:
<script language="JavaScript">
<!--
var g_selProvince;
var g_selCity;
var Provinces=new Array(
new Array("110000","北京市"),
new Array("120000","天津市"),
new Array("130000","河北省"),
new Array("140000","山西省"),
new Array("150000","內(nèi)蒙古自治區(qū)"),
new Array("210000","遼寧省"),
new Array("220000","吉林省"),
new Array("230000","黑龍江省"),
new Array("310000","上海市"),
new Array("320000","江蘇省"),
new Array("330000","浙江省"),
new Array("340000","安徽省"),
new Array("350000","福建省"),
new Array("360000","江西省"),
new Array("370000","山東省"),
new Array("410000","河南省"),
new Array("420000","湖北省"),
new Array("430000","湖南省"),
new Array("440000","廣東省"),
new Array("450000","廣西壯族自治區(qū)"),
new Array("460000","海南省"),
new Array("500000","重慶市"),
new Array("510000","四川省"),
new Array("520000","貴州省"),
new Array("530000","云南省"),
new Array("540000","西藏自治區(qū)"),
new Array("610000","陜西省"),
new Array("620000","甘肅省"),
new Array("630000","青海省"),
new Array("640000","寧夏回族自治區(qū)"),
new Array("650000","新疆維吾爾自治區(qū)"),
new Array("710000","臺(tái)灣省"),
new Array("810000","香港特別行政區(qū)"),
new Array("820000","澳門特別行政區(qū)")
);
var Citys=new Array(
new Array("110100","北京"),
new Array("120100","天津"),
new Array("130101","石家莊"),
new Array("130201","唐山"),
new Array("130301","秦皇島"),
new Array("130701","張家口"),
new Array("130801","承德"),
new Array("131001","廊坊"),
new Array("130401","邯鄲"),
new Array("130501","邢臺(tái)"),
new Array("130601","保定"),
new Array("130901","滄州"),
new Array("133001","衡水"),
new Array("140101","太原"),
new Array("140201","大同"),
new Array("140301","陽泉"),
new Array("140501","晉城"),
new Array("140601","朔州"),
new Array("142201","忻州"),
new Array("142331","離石"),
new Array("142401","榆次"),
new Array("142601","臨汾"),
new Array("142701","運(yùn)城"),
new Array("140401","長(zhǎng)治"),
new Array("150101","呼和浩特"),
new Array("150201","包頭"),
new Array("150301","烏海"),
new Array("152601","集寧"),
new Array("152701","東勝"),
new Array("152801","臨河"),
new Array("152921","阿拉善左旗"),
new Array("150401","赤峰"),
new Array("152301","通遼"),
new Array("152502","錫林浩特"),
new Array("152101","海拉爾"),
new Array("152201","烏蘭浩特"),
new Array("210101","沈陽"),
new Array("210201","大連"),
new Array("210301","鞍山"),
new Array("210401","撫順"),
new Array("210501","本溪"),
new Array("210701","錦州"),
new Array("210801","營(yíng)口"),
new Array("210901","阜新"),
new Array("211101","盤錦"),
new Array("211201","鐵嶺"),
new Array("211301","朝陽"),
new Array("211401","錦西"),
new Array("210601","丹東"),
new Array("220101","長(zhǎng)春"),
new Array("220201","吉林"),
new Array("220301","四平"),
new Array("220401","遼源"),
new Array("220601","渾江"),
new Array("222301","白城"),
new Array("222401","延吉"),
new Array("220501","通化"),
new Array("230101","哈爾濱"),
new Array("230301","雞西"),
new Array("230401","鶴崗"),
new Array("230501","雙鴨山"),
new Array("230701","伊春"),
new Array("230801","佳木斯"),
new Array("230901","七臺(tái)河"),
new Array("231001","牡丹江"),
new Array("232301","綏化"),
new Array("230201","齊齊哈爾"),
new Array("230601","大慶"),
new Array("232601","黑河"),
new Array("232700","加格達(dá)奇"),
new Array("310100","上海"),
new Array("320101","南京"),
new Array("320201","無錫"),
new Array("320301","徐州"),
new Array("320401","常州"),
new Array("320501","蘇州"),
new Array("320600","南通"),
new Array("320701","連云港"),
new Array("320801","淮陰"),
new Array("320901","鹽城"),
new Array("321001","揚(yáng)州"),
new Array("321101","鎮(zhèn)江"),
new Array("330101","杭州"),
new Array("330201","寧波"),
new Array("330301","溫州"),
new Array("330401","嘉興"),
new Array("330501","湖州"),
new Array("330601","紹興"),
new Array("330701","金華"),
new Array("330801","衢州"),
new Array("330901","舟山"),
new Array("332501","麗水"),
new Array("332602","臨海"),
new Array("340101","合肥"),
new Array("340201","蕪湖"),
new Array("340301","蚌埠"),
new Array("340401","淮南"),
new Array("340501","馬鞍山"),
new Array("340601","淮北"),
new Array("340701","銅陵"),
new Array("340801","安慶"),
new Array("341001","黃山"),
new Array("342101","阜陽"),
new Array("342201","宿州"),
new Array("342301","滁州"),
new Array("342401","六安"),
new Array("342501","宣州"),
new Array("342601","巢湖"),
new Array("342901","貴池"),
new Array("350101","福州"),
new Array("350201","廈門"),
new Array("350301","莆田"),
new Array("350401","三明"),
new Array("350501","泉州"),
new Array("350601","漳州"),
new Array("352101","南平"),
new Array("352201","寧德"),
new Array("352601","龍巖"),
new Array("360101","南昌"),
new Array("360201","景德鎮(zhèn)"),
new Array("362101","贛州"),
new Array("360301","萍鄉(xiāng)"),
new Array("360401","九江"),
new Array("360501","新余"),
new Array("360601","鷹潭"),
new Array("362201","宜春"),
new Array("362301","上饒"),
new Array("362401","吉安"),
new Array("362502","臨川"),
new Array("370101","濟(jì)南"),
new Array("370201","青島"),
new Array("370301","淄博"),
new Array("370401","棗莊"),
new Array("370501","東營(yíng)"),
new Array("370601","煙臺(tái)"),
new Array("370701","濰坊"),
new Array("370801","濟(jì)寧"),
new Array("370901","泰安"),
new Array("371001","威海"),
new Array("371100","日照"),
new Array("372301","濱州"),
new Array("372401","德州"),
new Array("372501","聊城"),
new Array("372801","臨沂"),
new Array("372901","菏澤"),
new Array("410101","鄭州"),
new Array("410201","開封"),
new Array("410301","洛陽"),
new Array("410401","平頂山"),
new Array("410501","安陽"),
new Array("410601","鶴壁"),
new Array("410701","新鄉(xiāng)"),
new Array("410801","焦作"),
new Array("410901","濮陽"),
new Array("411001","許昌"),
new Array("411101","漯河"),
new Array("411201","三門峽"),
new Array("412301","商丘"),
new Array("412701","周口"),
new Array("412801","駐馬店"),
new Array("412901","南陽"),
new Array("413001","信陽"),
new Array("420101","武漢"),
new Array("420201","黃石"),
new Array("420301","十堰"),
new Array("420400","沙市"),
new Array("420501","宜昌"),
new Array("420601","襄樊"),
new Array("420701","鄂州"),
new Array("420801","荊門"),
new Array("422103","黃州"),
new Array("422201","孝感"),
new Array("422301","咸寧"),
new Array("422421","江陵"),
new Array("422801","恩施"),
new Array("430101","長(zhǎng)沙"),
new Array("430401","衡陽"),
new Array("430501","邵陽"),
new Array("432801","郴州"),
new Array("432901","永州"),
new Array("430801","大庸"),
new Array("433001","懷化"),
new Array("433101","吉首"),
new Array("430201","株洲"),
new Array("430301","湘潭"),
new Array("430601","岳陽"),
new Array("430701","常德"),
new Array("432301","益陽"),
new Array("432501","婁底"),
new Array("440101","廣州"),
new Array("440301","深圳"),
new Array("441501","汕尾"),
new Array("441301","惠州"),
new Array("441601","河源"),
new Array("440601","佛山"),
new Array("441801","清遠(yuǎn)"),
new Array("441901","東莞"),
new Array("440401","珠海"),
new Array("440701","江門"),
new Array("441201","肇慶"),
new Array("442001","中山"),
new Array("440801","湛江"),
new Array("440901","茂名"),
new Array("440201","韶關(guān)"),
new Array("440501","汕頭"),
new Array("441401","梅州"),
new Array("441701","陽江"),
new Array("450101","南寧"),
new Array("450401","梧州"),
new Array("452501","玉林"),
new Array("450301","桂林"),
new Array("452601","百色"),
new Array("452701","河池"),
new Array("452802","欽州"),
new Array("450201","柳州"),
new Array("450501","北海"),
new Array("460100","???),
new Array("460200","三亞"),
new Array("510101","成都"),
new Array("513321","康定"),
new Array("513101","雅安"),
new Array("513229","馬爾康"),
new Array("510301","自貢"),
new Array("500100","重慶"),
new Array("512901","南充"),
new Array("510501","瀘州"),
new Array("510601","德陽"),
new Array("510701","綿陽"),
new Array("510901","遂寧"),
new Array("511001","內(nèi)江"),
new Array("511101","樂山"),
new Array("512501","宜賓"),
new Array("510801","廣元"),
new Array("513021","達(dá)縣"),
new Array("513401","西昌"),
new Array("510401","攀枝花"),
new Array("500239","黔江土家族苗族自治縣"),
new Array("520101","貴陽"),
new Array("520200","六盤水"),
new Array("522201","銅仁"),
new Array("522501","安順"),
new Array("522601","凱里"),
new Array("522701","都勻"),
new Array("522301","興義"),
new Array("522421","畢節(jié)"),
new Array("522101","遵義"),
new Array("530101","昆明"),
new Array("530201","東川"),
new Array("532201","曲靖"),
new Array("532301","楚雄"),
new Array("532401","玉溪"),
new Array("532501","個(gè)舊"),
new Array("532621","文山"),
new Array("532721","思茅"),
new Array("532101","昭通"),
new Array("532821","景洪"),
new Array("532901","大理"),
new Array("533001","保山"),
new Array("533121","潞西"),
new Array("533221","麗江納西族自治縣"),
new Array("533321","瀘水"),//www.forasp.cn整理
new Array("533421","中甸"),
new Array("533521","臨滄"),
new Array("540101","拉薩"),
new Array("542121","昌都"),
new Array("542221","乃東"),
new Array("542301","日喀則"),
new Array("542421","那曲"),
new Array("542523","噶爾"),
new Array("542621","林芝"),
new Array("610101","西安"),
new Array("610201","銅川"),
new Array("610301","寶雞"),
new Array("610401","咸陽"),
new Array("612101","渭南"),
new Array("612301","漢中"),
new Array("612401","安康"),
new Array("612501","商州"),
new Array("612601","延安"),
new Array("612701","榆林"),
new Array("620101","蘭州"),
new Array("620401","白銀"),
new Array("620301","金昌"),
new Array("620501","天水"),
new Array("622201","張掖"),
new Array("622301","武威"),
new Array("622421","定西"),
new Array("622624","成縣"),
new Array("622701","平?jīng)?),
new Array("622801","西峰"),
new Array("622901","臨夏"),
new Array("623027","夏河"),
new Array("620201","嘉峪關(guān)"),
new Array("622102","酒泉"),
new Array("630100","西寧"),
new Array("632121","平安"),
new Array("632221","門源回族自治縣"),
new Array("632321","同仁"),
new Array("632521","共和"),
new Array("632621","瑪沁"),
new Array("632721","玉樹"),
new Array("632802","德令哈"),
new Array("640101","銀川"),
new Array("640201","石嘴山"),
new Array("642101","吳忠"),
new Array("642221","固原"),
new Array("650101","烏魯木齊"),
new Array("650201","克拉瑪依"),
new Array("652101","吐魯番"),
new Array("652201","哈密"),
new Array("652301","昌吉"),
new Array("652701","博樂"),
new Array("652801","庫爾勒"),
new Array("652901","阿克蘇"),
new Array("653001","阿圖什"),
new Array("653101","喀什"),
new Array("654101","伊寧"),
new Array("710001","臺(tái)北"),
new Array("710002","基隆"),
new Array("710020","臺(tái)南"),
new Array("710019","高雄"),
new Array("710008","臺(tái)中"),
new Array("211001","遼陽"),
new Array("653201","和田"),
new Array("542200","澤當(dāng)鎮(zhèn)"),
new Array("542600","八一鎮(zhèn)"),
new Array("820000","澳門"),
new Array("810000","香港")
);
function FillProvinces(selProvince)
{
selProvince.options[0]=new Option("請(qǐng)選擇","000000");
for(i=0;i<Provinces.length;i++)
{
selProvince.options[i+1]=new Option(Provinces[i][1],Provinces[i][0]);
}
selProvince.options[0].selected=true;
selProvince.length=i+1;
}
function FillCitys(selCity,ProvinceCode)
{
//if the province is a direct-managed city, like Beijing, shanghai, tianjin, chongqin,hongkong, macro
//need not "請(qǐng)選擇選項(xiàng)"
if(ProvinceCode=="110000"||ProvinceCode=="120000"||ProvinceCode=="310000"
||ProvinceCode=="810000"||ProvinceCode=="820000"||ProvinceCode=="500000")
count=0;
else
{selCity.options[0]=new Option("請(qǐng)選擇",ProvinceCode);
count=1;}
for(i=0;i<Citys.length;i++)
{
if(Citys[i][0].toString().substring(0,2)==ProvinceCode.substring(0,2))
{
selCity.options[count]=new Option(Citys[i][1],Citys[i][0]);
count=count+1;
}
}
selCity.options[0].selected=true;
selCity.length=count;
}
function Province_onchange()
{
FillCitys(g_selCity,g_selProvince.value);
}
function InitCitySelect(selProvince,selCity)
{
//alert("begin");
g_selProvince=selProvince;
g_selCity=selCity;
selProvince.onchange=Function("Province_onchange();");
FillProvinces(selProvince);
Province_onchange();
}
function InitCitySelect2(selProvince,selCity,CityCode)
{
InitCitySelect(selProvince,selCity)
for(i=0;i<selProvince.length;i++)
{
if(selProvince.options[i].value.substring(0,2)==CityCode.substring(0,2))
{
selProvince.options[i].selected=true;
}
}
Province_onchange();
for(i=0;i<selCity.length;i++)
{
if(selCity.options[i].value==CityCode)
{
selCity.options[i].selected=true;
}
}
}
//-->
</script>
<form name="profile" method="post" action="where.asp">
<SELECT id=province size=1 name=province>
<OPTION selected></OPTION>
</SELECT>
<SELECT id=city size=1 name=city>
<OPTION selected></OPTION>
</SELECT>
<SCRIPT language=javascript>
InitCitySelect(document.profile.province,document.profile.city);
</SCRIPT>
<input type="submit">
</form>
全國(guó)省份關(guān)聯(lián)表
<form name="form1" method="post" action="">
<SELECT onchange=setcity(); name=prv>
<OPTION value="" selected>-所在省份-</OPTION>
<OPTION value=安徽>安徽</OPTION>
<OPTION value=北京>北京</OPTION>
<OPTION value=重慶>重慶</OPTION>
<OPTION value=福建>福建</OPTION>
<OPTION value=甘肅>甘肅</OPTION>
<OPTION value=廣東>廣東</OPTION>
<OPTION value=廣西>廣西</OPTION>
<OPTION value=貴州>貴州</OPTION>
<OPTION value=海南>海南</OPTION>
<OPTION value=河北>河北</OPTION>
<OPTION value=黑龍江>黑龍江</OPTION>
<OPTION value=河南>河南</OPTION>
<OPTION value=香港>香港</OPTION>
<OPTION value=湖北>湖北</OPTION>
<OPTION value=湖南>湖南</OPTION>
<OPTION value=江蘇>江蘇</OPTION>
<OPTION value=江西>江西</OPTION>
<OPTION value=吉林>吉林</OPTION>
<OPTION value=遼寧>遼寧</OPTION>
<OPTION value=澳門>澳門</OPTION>
<OPTION value=內(nèi)蒙古>內(nèi)蒙古</OPTION>
<OPTION value=寧夏>寧夏</OPTION>
<OPTION value=青海>青海</OPTION>
<OPTION value=山東>山東</OPTION>
<OPTION value=上海>上海</OPTION>
<OPTION value=山西>山西</OPTION>
<OPTION value=陜西>陜西</OPTION>
<OPTION value=四川>四川</OPTION>
<OPTION value=臺(tái)灣>臺(tái)灣</OPTION>
<OPTION value=天津>天津</OPTION>
<OPTION value=新疆>新疆</OPTION>
<OPTION value=西藏>西藏</OPTION>
<OPTION value=云南>云南</OPTION>
<OPTION value=浙江>浙江</OPTION>
</SELECT>省
<SELECT name=city></SELECT>市
<SCRIPT language=JavaScript>
<!--
function setcity() {
switch (document.form1.prv.value) {
case "" :
var cityOptions = new Array("", "");
break;
case "安徽" :
var cityOptions = new Array(
"合肥", "合肥","安慶", "安慶","蚌埠", "蚌埠","亳州", "亳州","巢湖", "巢湖","滁州", "滁州","阜陽", "阜陽","貴池", "貴池","淮北", "淮北","淮化", "淮化","淮南", "淮南", "黃山
", "黃山", "九華山", "九華山", "六安", "六安","馬鞍山", "馬鞍山","宿州", "宿州","銅陵", "銅陵","屯溪", "屯溪","蕪湖", "蕪湖", "宣城", "宣城");
break;
case "北京" :
var cityOptions = new Array(
"北京", "北京","東城","西城","崇文","宣武","朝陽","豐臺(tái)","石景山","海淀","門頭溝","房山","通州","順義","昌平","大興","平谷","懷柔","密云","延慶");
break;
case "重慶" :
var cityOptions = new Array(
"重慶", "重慶","萬州","涪陵","渝中","大渡口","江北","沙坪壩","九龍坡","南岸","北碚","萬盛","雙撟","渝北","巴南","黔江","長(zhǎng)壽","綦江","潼南","銅梁","大足","榮昌","壁山
","梁平","城口","豐都","墊江","武隆","忠縣","開縣","云陽","奉節(jié)","巫山","巫溪","石柱","秀山","酉陽","彭水","江津","合川","永川","南川");
break;
case "福建" :
var cityOptions = new Array(
"福州", "福州","福安", "福安","龍巖", "龍巖","南平", "南平","寧德", "寧德","莆田", "莆田","泉州", "泉州","三明", "三明","邵武", "邵武","石獅", "石獅","永安","永安", "武夷
山", "武夷山","廈門", "廈門", "漳州", "漳州");//forasp.cn網(wǎng)站制作學(xué)習(xí)網(wǎng)整理
break;
case "甘肅" :
var cityOptions = new Array(
"蘭州(*)", "蘭州",
"白銀", "白銀",
"定西", "定西",
"敦煌", "敦煌",
"甘南", "甘南",
"金昌", "金昌",
"酒泉", "酒泉",
"臨夏", "臨夏",
"平?jīng)?, "平?jīng)?,
"天水", "天水",
"武都", "武都",
"西峰", "西峰",
"張掖", "張掖");
break;
case "廣東" :
var cityOptions = new Array(
"廣州(*)", "廣州",
"潮陽", "潮陽",
"潮州", "潮州",
"澄海", "澄海",
"東莞", "東莞",
"佛山", "佛山",
"河源", "河源",
"惠州", "惠州",
"江門", "江門",
"揭陽", "揭陽",
"開平", "開平",
"茂名", "茂名",
"梅州", "梅州",
"清遠(yuǎn)", "清遠(yuǎn)",
"汕頭", "汕頭",
"汕尾", "汕尾",
"韶關(guān)", "韶關(guān)",
"深圳", "深圳",
"順德", "順德",
"陽江", "陽江",
"陽江", "陽江",
"英德", "英德",
"云浮", "云浮",
"增城", "增城",
"湛江", "湛江",
"肇慶", "肇慶",
"中山", "中山",
"珠海", "珠海");
break;
case "廣西" :
var cityOptions = new Array(
"南寧(*)", "南寧",
"百色", "百色",
"北海", "北海",
"桂林", "桂林",
"防城港", "防城港",
"河池", "河池",
"柳州", "柳州",
"欽州", "欽州",
"梧州", "梧州",
"玉林", "玉林");
break;
case "貴州" :
var cityOptions = new Array(
"貴陽(*)", "貴陽",
"安順", "安順",
"畢節(jié)", "畢節(jié)",
"都勻", "都勻",
"凱里", "凱里",
"六盤水", "六盤水",
"銅仁", "銅仁",
"興義", "興義",
"玉屏", "玉屏",
"遵義", "遵義");
break;
case "海南" :
var cityOptions = new Array(
"???*)", "海口",
"儋縣", "儋縣",
"陵水", "陵水",
"瓊海", "瓊海",
"三亞", "三亞",
"通什", "通什",
"萬寧", "萬寧");
break;
case "河北" :
var cityOptions = new Array(
"石家莊(*)", "石家莊",
"保定", "保定",
"北戴河", "北戴河",
"滄州", "滄州",
"承德", "承德",
"豐潤(rùn)", "豐潤(rùn)",
"邯鄲", "邯鄲",
"衡水", "衡水",
"廊坊", "廊坊",
"南戴河", "南戴河",
"秦皇島", "秦皇島",
"唐山", "唐山",
"新城", "新城",
"邢臺(tái)", "邢臺(tái)",
"張家口", "張家口");
break;
case "黑龍江" :
var cityOptions = new Array(
"哈爾濱(*)", "哈爾濱",
"北安", "北安",
"大慶", "大慶",
"大興安嶺", "大興安嶺",
"鶴崗", "鶴崗",
"黑河", "黑河",
"佳木斯", "佳木斯",
"雞西", "雞西",
"牡丹江", "牡丹江",
"齊齊哈爾", "齊齊哈爾",
"七臺(tái)河", "七臺(tái)河",
"雙鴨山", "雙鴨山",
"綏化", "綏化",
"伊春", "伊春");
break;
case "河南" :
var cityOptions = new Array(
"鄭州(*)", "鄭州",
"安陽", "安陽",
"鶴壁", "鶴壁",
"潢川", "潢川",
"焦作", "焦作",
"開封", "開封",
"漯河", "漯河",
"洛陽", "洛陽",
"南陽", "南陽",
"平頂山", "平頂山",
"濮陽", "濮陽",
"三門峽", "三門峽",
"商丘", "商丘",
"新鄉(xiāng)", "新鄉(xiāng)",
"信陽", "信陽",
"許昌", "許昌",
"周口", "周口",
"駐馬店", "駐馬店");
break;
case "香港" :
var cityOptions = new Array(
"香港", "香港",
"九龍", "九龍");
break;
case "湖北" :
var cityOptions = new Array(
"武漢(*)", "武漢",
"恩施", "恩施",
"鄂州", "鄂州",
"黃崗", "黃崗",
"黃石", "黃石",
"荊門", "荊門",
"荊州", "荊州",
"潛江", "潛江",
"十堰", "十堰",
"隨州", "隨州",
"武穴", "武穴",
"仙桃", "仙桃",
"咸寧", "咸寧",
"襄陽", "襄陽",
"襄樊", "襄樊",
"孝感", "孝感",
"宜昌", "宜昌");
break;
case "湖南" :
var cityOptions = new Array(
"長(zhǎng)沙(*)", "長(zhǎng)沙",
"常德", "常德",
"郴州", "郴州",
"衡陽", "衡陽",
"懷化", "懷化",
"吉首", "吉首",
"婁底", "婁底",
"邵陽", "邵陽",
"湘潭", "湘潭",
"益陽", "益陽",
"岳陽", "岳陽",
"永州", "永州",
"張家界", "張家界",
"株洲", "株洲");
break;
case "江蘇" :
var cityOptions = new Array(
"南京(*)", "南京",
"常熟", "常熟",
"常州", "常州",
"海門", "海門",
"淮安", "淮安",
"江都", "江都",
"江陰", "江陰",
"昆山", "昆山",
"連云港", "連云港",
"南通", "南通",
"啟東", "啟東",
"沭陽", "沭陽",
"蘇州", "蘇州",
"太倉(cāng)", "太倉(cāng)",
"泰州", "泰州",
"同里", "同里",
"無錫", "無錫",
"徐州", "徐州",
"鹽城", "鹽城",
"揚(yáng)州", "揚(yáng)州",
"宜興", "宜興",
"儀征", "儀征",
"張家港", "張家港",
"鎮(zhèn)江", "鎮(zhèn)江",
"周莊", "周莊");
break;
case "江西" :
var cityOptions = new Array(
"南昌(*)", "南昌",
"撫州", "撫州",
"贛州", "贛州",
"吉安", "吉安",
"景德鎮(zhèn)", "景德鎮(zhèn)",
"井岡山", "井岡山",
"九江", "九江",
"廬山", "廬山",
"萍鄉(xiāng)", "萍鄉(xiāng)",
"上饒", "上饒",
"新余", "新余",
"宜春", "宜春",
"鷹潭", "鷹潭");
break;
case "吉林" :
var cityOptions = new Array(
"長(zhǎng)春(*)", "長(zhǎng)春",
"白城", "白城",
"白山", "白山",
"琿春", "琿春",
"遼源", "遼源",
"梅河", "梅河",
"吉林", "吉林",
"四平", "四平",
"松原", "松原",
"通化", "通化",
"延吉", "延吉");
break;
case "遼寧" :
var cityOptions = new Array(
"沈陽(*)", "沈陽",
"鞍山", "鞍山",
"本溪", "本溪",
"朝陽", "朝陽",
"大連", "大連",
"丹東", "丹東",
"撫順", "撫順",
"阜新", "阜新",
"葫蘆島", "葫蘆島",
"錦州", "錦州",
"遼陽", "遼陽",
"盤錦", "盤錦",
"鐵嶺", "鐵嶺",
"營(yíng)口", "營(yíng)口");
break;
case "澳門" :
var cityOptions = new Array(
"澳門", "澳門");
break;
case "內(nèi)蒙古" :
var cityOptions = new Array(
"呼和浩特(*)", "呼和浩特",
"阿拉善盟", "阿拉善盟",
"包頭", "包頭",
"赤峰", "赤峰",
"東勝", "東勝",
"海拉爾", "海拉爾",
"集寧", "集寧",
"臨河", "臨河",
"通遼", "通遼",
"烏海", "烏海",
"烏蘭浩特", "烏蘭浩特",
"錫林浩特", "錫林浩特");
break;
case "寧夏" :
var cityOptions = new Array(
"銀川(*)", "銀川",
"固源", "固源",
"石嘴山", "石嘴山",
"吳忠", "吳忠");
break;
case "青海" :
var cityOptions = new Array(
"西寧(*)", "西寧",
"德令哈", "德令哈",
"格爾木", "格爾木",
"共和", "共和",
"海東", "海東",
"海晏", "海晏",
"瑪沁", "瑪沁",
"同仁", "同仁",
"玉樹", "玉樹");
break;
case "山東" ://網(wǎng)站制作學(xué)習(xí)網(wǎng)forasp.cn整理
var cityOptions = new Array(
"濟(jì)南(*)", "濟(jì)南",
"濱州", "濱州",
"兗州", "兗州",
"德州", "德州",
"東營(yíng)", "東營(yíng)",
"荷澤", "荷澤",
"濟(jì)寧", "濟(jì)寧",
"萊蕪", "萊蕪",
"聊城", "聊城",
"臨沂", "臨沂",
"蓬萊", "蓬萊",
"青島", "青島",
"曲阜", "曲阜",
"日照", "日照",
"泰安", "泰安",
"濰坊", "濰坊",
"威海", "威海",
"煙臺(tái)", "煙臺(tái)",
"棗莊", "棗莊",
"淄博", "淄博");
break;
case "上海" :
var cityOptions = new Array(
"上海", "上海",
"崇明", "崇明",
"朱家角", "朱家角");
break;
case "山西" :
var cityOptions = new Array(
"太原(*)", "太原",
"長(zhǎng)治", "長(zhǎng)治",
"大同", "大同",
"候馬", "候馬",
"晉城", "晉城",
"離石", "離石",
"臨汾", "臨汾",
"寧武", "寧武",
"朔州", "朔州",
"忻州", "忻州",
"陽泉", "陽泉",
"榆次", "榆次",
"運(yùn)城", "運(yùn)城");
break;
case "陜西" ://www.forasp.cn整理
var cityOptions = new Array(
"西安(*)", "西安",
"安康", "安康",
"寶雞", "寶雞",
"漢中", "漢中",
"渭南", "渭南",
"商州", "商州",
"綏德", "綏德",
"銅川", "銅川",
"咸陽", "咸陽",
"延安", "延安",
"榆林", "榆林");
break;
case "四川" :
var cityOptions = new Array(
"成都(*)", "成都",
"巴中", "巴中",
"達(dá)安", "達(dá)安",
"德陽", "德陽",
"都江堰", "都江堰",
"峨眉山", "峨眉山",
"涪陵", "涪陵",
"廣安", "廣安",
"廣元", "廣元",
"九寨溝", "九寨溝",
"康定", "康定",
"樂山", "樂山",
"瀘州", "瀘州",
"馬爾康", "馬爾康",
"綿陽", "綿陽",
"南充", "南充",
"內(nèi)江", "內(nèi)江",
"攀枝花", "攀枝花",
"遂寧", "遂寧",
"汶川", "汶川",
"西昌", "西昌",
"雅安", "雅安",
"宜賓", "宜賓",
"自貢", "自貢");
break;
case "臺(tái)灣" :
var cityOptions = new Array(
"臺(tái)北(*)", "臺(tái)北",
"基隆", "基隆",
"臺(tái)南", "臺(tái)南",
"臺(tái)中", "臺(tái)中");
break;
case "天津" :
var cityOptions = new Array(
"天津", "天津");
break;
case "新疆" :
var cityOptions = new Array(
"烏魯木齊(*)", "烏魯木齊",
"阿克蘇", "阿克蘇",
"阿勒泰", "阿勒泰",
"阿圖什", "阿圖什",
"博樂", "博樂",
"昌吉", "昌吉",
"東山", "東山",
"哈密", "哈密",
"和田", "和田",
"喀什", "喀什",
"克拉瑪依", "克拉瑪依",
"庫車", "庫車",
"庫爾勒", "庫爾勒",
"奎屯", "奎屯",
"石河子", "石河子",
"塔城", "塔城",
"吐魯番", "吐魯番",
"伊寧", "伊寧");
break;
case "西藏" :
var cityOptions = new Array(
"拉薩(*)", "拉薩",
"阿里", "阿里",
"昌都", "昌都",
"林芝", "林芝",
"那曲", "那曲",
"日喀則", "日喀則",
"山南", "山南");
break;
case "云南" :
var cityOptions = new Array(
"昆明(*)", "昆明",
"大理", "大理",
"保山", "保山",
"楚雄", "楚雄",
"大理", "大理",
"東川", "東川",
"個(gè)舊", "個(gè)舊",
"景洪", "景洪",
"開遠(yuǎn)", "開遠(yuǎn)",
"臨滄", "臨滄",
"麗江", "麗江",
"六庫", "六庫",
"潞西", "潞西",
"曲靖", "曲靖",
"思茅", "思茅",
"文山", "文山",
"西雙版納", "西雙版納",
"玉溪", "玉溪",
"中甸", "中甸",
"昭通", "昭通");
break;
case "浙江" :
var cityOptions = new Array(
"杭州(*)", "杭州",
"安吉", "安吉",
"慈溪", "慈溪",
"定海", "定海",
"奉化", "奉化",
"海鹽", "海鹽",
"黃巖", "黃巖",
"湖州", "湖州",
"嘉興", "嘉興",
"金華", "金華",
"臨安", "臨安",
"臨海", "臨海",
"麗水", "麗水",
"寧波", "寧波",
"甌海", "甌海",
"平湖", "平湖",
"千島湖", "千島湖",
"衢州", "衢州",
"瑞安", "瑞安",
"紹興", "紹興",
"嵊州", "嵊州",
"臺(tái)州", "臺(tái)州",
"溫嶺", "溫嶺",
"溫州", "溫州");
break;
}
document.form1.city.options.length = 0;
for(var i = 0; i < cityOptions.length/2; i++) {
document.form1.city.options[i]=new Option(cityOptions[i*2],cityOptions[i*2+1]);
if (document.form1.city.options[i].value=="") document.form1.city.selectedIndex = i;
}
}
function initprovcity() {
for(var i = 0; i < document.form1.prv.options.length; i++) {
if (document.form1.prv.options[i].value=="") document.form1.prv.selectedIndex = i;
}
setcity();
}
onload=initprovcity;
-->
</SCRIPT>
</form>
更多信息請(qǐng)查看IT技術(shù)專欄