.net和javascript 结合 ,生成三级联动无刷新下拉菜单【修改版】1

这个是修改版本:
首先修改了area.js

// 国家列表
var nation = new Array();
nation[
0 ] = new Array(' 0 ',' 1 ','阿尔巴尼亚');
nation[
1 ] = new Array(' 0 ',' 2 ','阿尔及利亚');
nation[
2 ] = new Array(' 0 ',' 3 ','阿富汗');
nation[
3 ] = new Array(' 0 ',' 4 ','阿根廷');
nation[
4 ] = new Array(' 0 ',' 5 ','阿拉伯联合酋长国');
nation[
5 ] = new Array(' 0 ',' 6 ','阿鲁巴');
nation[
6 ] = new Array(' 0 ',' 7 ','阿曼');
nation[
7 ] = new Array(' 0 ',' 8 ','阿塞拜疆');
nation[
8 ] = new Array(' 0 ',' 9 ','埃及');
nation[
9 ] = new Array(' 0 ',' 10 ','埃塞俄比亚');
nation[
10 ] = new Array(' 0 ',' 11 ','爱尔兰');
nation[
11 ] = new Array(' 0 ',' 12 ','爱沙尼亚');
nation[
12 ] = new Array(' 0 ',' 13 ','安道尔');
nation[
13 ] = new Array(' 0 ',' 14 ','安哥拉');
nation[
14 ] = new Array(' 0 ',' 15 ','安圭拉岛');
nation[
15 ] = new Array(' 0 ',' 16 ','安提瓜和巴布达');
nation[
16 ] = new Array(' 0 ',' 17 ','奥地利');
nation[
17 ] = new Array(' 0 ',' 18 ','澳大利亚');
nation[
18 ] = new Array(' 0 ',' 19 ','澳门特别行政区');
nation[
19 ] = new Array(' 0 ',' 20 ','巴巴多斯');
nation[
20 ] = new Array(' 0 ',' 21 ','巴布亚新几内亚');
nation[
21 ] = new Array(' 0 ',' 22 ','巴哈马');
nation[
22 ] = new Array(' 0 ',' 23 ','巴基斯坦');
nation[
23 ] = new Array(' 0 ',' 24 ','巴拉圭');
nation[
24 ] = new Array(' 0 ',' 25 ','巴林');
nation[
25 ] = new Array(' 0 ',' 26 ','巴拿马');
nation[
26 ] = new Array(' 0 ',' 27 ','巴西');
nation[
27 ] = new Array(' 0 ',' 28 ','白俄罗斯');
nation[
28 ] = new Array(' 0 ',' 29 ','百慕大群岛');
nation[
29 ] = new Array(' 0 ',' 30 ','保加利亚');
nation[
30 ] = new Array(' 0 ',' 31 ','北马里亚纳群岛');
nation[
31 ] = new Array(' 0 ',' 32 ','贝宁');
nation[
32 ] = new Array(' 0 ',' 33 ','比利时');
nation[
33 ] = new Array(' 0 ',' 34 ','冰岛');
nation[
34 ] = new Array(' 0 ',' 35 ','波多黎各');
nation[
35 ] = new Array(' 0 ',' 36 ','波兰');
nation[
36 ] = new Array(' 0 ',' 37 ','波斯尼亚和黑塞哥维那');
nation[
37 ] = new Array(' 0 ',' 38 ','玻利维亚');
nation[
38 ] = new Array(' 0 ',' 39 ','伯利兹');
nation[
39 ] = new Array(' 0 ',' 40 ','博茨瓦纳');
nation[
40 ] = new Array(' 0 ',' 41 ','不丹');

// 省份列表
var province = new Array();
province[
0 ] = new Array(' 236 ',' 238 ','安徽');
province[
1 ] = new Array(' 236 ',' 2948 ','澳门');
province[
2 ] = new Array(' 236 ',' 239 ','北京');
province[
3 ] = new Array(' 236 ',' 241 ','福建');
province[
4 ] = new Array(' 236 ',' 242 ','甘肃');
province[
5 ] = new Array(' 236 ',' 243 ','广东');
province[
6 ] = new Array(' 236 ',' 244 ','广西');
province[
7 ] = new Array(' 236 ',' 245 ','贵州');
province[
8 ] = new Array(' 236 ',' 246 ','海南');
province[
9 ] = new Array(' 236 ',' 247 ','河北');
province[
10 ] = new Array(' 236 ',' 248 ','河南');
province[
11 ] = new Array(' 236 ',' 249 ','黑龙江');
province[
12 ] = new Array(' 236 ',' 250 ','湖北');
province[
13 ] = new Array(' 236 ',' 251 ','湖南');
province[
14 ] = new Array(' 236 ',' 252 ','吉林');
province[
15 ] = new Array(' 236 ',' 253 ','江苏');
province[
16 ] = new Array(' 236 ',' 254 ','江西');
province[
17 ] = new Array(' 236 ',' 255 ','辽宁');
province[
18 ] = new Array(' 236 ',' 256 ','内蒙古');
province[
19 ] = new Array(' 236 ',' 257 ','宁夏');
province[
20 ] = new Array(' 236 ',' 258 ','青海');
province[
21 ] = new Array(' 236 ',' 259 ','山东');
province[
22 ] = new Array(' 236 ',' 260 ','山西');
province[
23 ] = new Array(' 236 ',' 261 ','陕西');
province[
24 ] = new Array(' 236 ',' 262 ','上海');
province[
25 ] = new Array(' 236 ',' 263 ','四川');
province[
26 ] = new Array(' 236 ',' 2949 ','台湾');
province[
27 ] = new Array(' 236 ',' 264 ','天津');
province[
28 ] = new Array(' 236 ',' 265 ','西藏');
province[
29 ] = new Array(' 236 ',' 2947 ','香港');
province[
30 ] = new Array(' 236 ',' 266 ','新疆');
province[
31 ] = new Array(' 236 ',' 267 ','云南');
province[
32 ] = new Array(' 236 ',' 268 ','浙江');
province[
33 ] = new Array(' 236 ',' 240 ','重庆');

// 市级列表
var city = new Array();
city[
0 ] = new Array(' 251 ',' 1645 ','永州',' 425000 ',' 0746 ');
city[
1 ] = new Array(' 263 ',' 2468 ','广元',' 628000 ',' 0839 ');
city[
2 ] = new Array(' 240 ',' 2946 ','万州区',' 401420 ',' 023 ');
city[
3 ] = new Array(' 2947 ',' 2950 ','湾仔区','',' 00852 ');
city[
4 ] = new Array(' 2947 ',' 2951 ','东区','',' 00852 ');
city[
5 ] = new Array(' 2947 ',' 2952 ','中西区','',' 00852 ');
city[
6 ] = new Array(' 2947 ',' 2953 ','南区','',' 00852 ');
city[
7 ] = new Array(' 2947 ',' 2954 ','北区','',' 00852 ');
city[
8 ] = new Array(' 2947 ',' 2955 ','九龙城区','',' 00852 ');
city[
9 ] = new Array(' 2949 ',' 2956 ','台北市',' 222 ',' 2 ');
city[
10 ] = new Array(' 2949 ',' 2957 ','高雄市',' 800 ',' 7 ');
city[
11 ] = new Array(' 2949 ',' 2958 ','台中市',' 400 ',' 42 ');
city[
12 ] = new Array(' 2949 ',' 2959 ','台南市',' 700 ',' 62 ');
city[
13 ] = new Array(' 2949 ',' 2960 ','基隆市',' 200 ',' 32 ');
city[
14 ] = new Array(' 2949 ',' 2961 ','新竹市',' 300 ',' 35 ');
city[
15 ] = new Array(' 2949 ',' 2962 ','嘉义市',' 600 ',' 52 ');
city[
16 ] = new Array(' 2949 ',' 2963 ','台北县',' 222 ',' 2 ');
city[
17 ] = new Array(' 2949 ',' 2964 ','宜兰县','','');
city[
18 ] = new Array(' 2949 ',' 2965 ','桃园县','','');
city[
19 ] = new Array(' 2949 ',' 2966 ','新竹县',' 300 ',' 35 ');
city[
20 ] = new Array(' 2949 ',' 2967 ','苗栗县','','');
city[
21 ] = new Array(' 2949 ',' 2968 ','台中县',' 400 ',' 42 ');
city[
22 ] = new Array(' 2949 ',' 2975 ','高雄县',' 800 ',' 7 ');
city[
23 ] = new Array(' 2949 ',' 2970 ','彰化县','','');
city[
24 ] = new Array(' 2949 ',' 2971 ','南投县','','');
city[
25 ] = new Array(' 2949 ',' 2972 ','云林县','','');
city[
26 ] = new Array(' 2949 ',' 2973 ','嘉义县',' 600 ',' 52 ');
city[
27 ] = new Array(' 2949 ',' 2974 ','台南县',' 700 ',' 62 ');
city[
28 ] = new Array(' 2949 ',' 2976 ','屏东县','','');
city[
29 ] = new Array(' 2949 ',' 2977 ','台东县','','');
city[
30 ] = new Array(' 2949 ',' 2978 ','花莲县','','');
city[
31 ] = new Array(' 2949 ',' 2979 ','澎湖县','','');
city[
32 ] = new Array(' 2947 ',' 2982 ','观塘区','',' 00852 ');
city[
33 ] = new Array(' 2947 ',' 2983 ','油尖旺区','',' 00852 ');
city[
34 ] = new Array(' 2947 ',' 2984 ','深水埗区','',' 00852 ');
city[
35 ] = new Array(' 2947 ',' 2985 ','葵青区','',' 00852 ');
city[
36 ] = new Array(' 2947 ',' 2986 ','沙田区','',' 00852 ');
city[
37 ] = new Array(' 2947 ',' 2987 ','黄大仙区','',' 00852 ');
city[
38 ] = new Array(' 2947 ',' 2988 ','荃湾区','',' 00852 ');
city[
39 ] = new Array(' 2947 ',' 2989 ','元朗区','',' 00852 ');
city[
40 ] = new Array(' 2947 ',' 2990 ','屯门区','',' 00852 ');
city[
41 ] = new Array(' 2947 ',' 2991 ','离岛区','',' 00852 ');
city[
42 ] = new Array(' 2947 ',' 2992 ','西贡区','',' 00852 ');
city[
43 ] = new Array(' 2947 ',' 2993 ','大埔区','',' 00852 ');
city[
44 ] = new Array(' 2948 ',' 2994 ','澳门半岛','',' 00853 ');
city[
45 ] = new Array(' 2948 ',' 2995 ','凼仔','',' 00853 ');
city[
46 ] = new Array(' 2948 ',' 2996 ','路环','',' 00853 ');
city[
47 ] = new Array(' 238 ',' 272 ','安庆',' 246000 ',' 0556 ');
city[
48 ] = new Array(' 238 ',' 273 ','蚌埠',' 233000 ',' 0552 ');
city[
49 ] = new Array(' 238 ',' 274 ','巢湖',' 238000 ',' 0565 ');
city[
50 ] = new Array(' 238 ',' 275 ','池州','','');
city[
51 ] = new Array(' 238 ',' 276 ','滁州',' 239000 ',' 0550 ');
city[
52 ] = new Array(' 238 ',' 277 ','阜阳',' 236000 ',' 0558 ');
city[
53 ] = new Array(' 238 ',' 278 ','合肥',' 230000 ',' 0551 ');
city[
54 ] = new Array(' 238 ',' 279 ','淮北',' 235000 ',' 0561 ');
city[
55 ] = new Array(' 238 ',' 280 ','淮南',' 232000 ',' 0554 ');
city[
56 ] = new Array(' 238 ',' 281 ','黄山',' 245000 ',' 0559 ');
city[
57 ] = new Array(' 238 ',' 282 ','六安',' 237000 ',' 0564 ');
city[
58 ] = new Array(' 238 ',' 283 ','马鞍山',' 243000 ',' 0555 ');
city[
59 ] = new Array(' 238 ',' 284 ','宿州',' 234000 ',' 0557 ');
city[
<span sty

你可能感兴趣的:(JavaScript,.net)