西安城市

来源:互联网 发布:淘宝怎么买燕隼红隼 编辑:程序博客网 时间:2024/04/28 04:43
var where = new Array(14); 
function comefrom(loca,locacity) { this.loca = loca; this.locacity = locacity; } 
where[0]= new comefrom("请选择","请选择");
where[1] = new comefrom("莲湖","|东城|西城|崇文|宣武|朝阳|丰台|石景山|海淀|门头沟|房山|通州|顺义|昌平|大兴|平谷|怀柔|密云|延庆"); 
where[2] = new comefrom("新城","|新城区|东风路街道|海拉尔路街道|新城街道|长乐西路街道|东五路街道|自强路街道|胡家庙街道|乐中路街道|太华路街道|韩森寨街道|长城街道|西夏街道|建政街道|大学西路街道|中山街道|新竹街道|西一路街道|解放门街道|西五路街道|朔方街道|中山门街道|铁西街道|贺兰山街道|铁东街道|锡林郭勒北路街道|中山东路街道|东街街道|西街街道|人民路街道|迎新路街道"); 
where[3] = new comefrom("碑林","|和平|东丽|河东|西青|河西|津南|南开|北辰|河北|武清|红挢|塘沽|汉沽|大港|宁河|静海|宝坻|蓟县"); 
where[4] = new comefrom("未央","|草滩街道|大明宫街道|汉城街道|六村堡街道|三桥街道|谭家街道|未央宫街道|辛家庙街道|徐家湾街道|张家堡街道  "); 
where[5] = new comefrom("雁塔","|长延堡街道|大雁塔街道|等驾坡街道|电子城街道|曲江街道|小寨路街道|鱼化寨街道|丈八沟街道"); 
where[6] = new comefrom("周至","|板房子乡|陈河乡|翠峰乡|二曲镇|富仁乡|广济镇|侯家村乡|厚畛子镇|集贤镇|九峰乡|楼观镇|骆峪乡|   马召镇|青化乡|尚村镇|司竹乡|四屯乡|王家河乡|辛家寨乡|哑柏镇|终南镇|竹峪乡"); 
where[7] = new comefrom("蓝田","|蓝关镇|玉山镇|泄湖镇|汤峪镇|焦岱镇|华胥镇|前卫镇|灞源乡|张家坪乡|金山乡|马楼乡|厚镇乡|三官庙乡|三里镇乡|普化乡|冯家村乡|辋川乡|李后乡|安村乡|大寨乡|史家寨乡|蓝桥乡|孟村乡|玉川乡|小寨乡|红门寺乡|九间房乡|草坪乡|葛牌乡"); 
where[8] = new comefrom("灞桥","|狄寨街道|纺织城街道|洪庆街道|红旗街道|十里铺街道|席王街道|新合街道|新筑街道|灞桥街道"); 
where[9] = new comefrom("阎良","|长凤凰路街道|新华路街道|振兴街道|新兴街道|北屯街道|武屯镇|关山镇"); 
where[10] = new comefrom("临潼","|骊山街道|秦陵街道|新丰街道|代王街道|斜口街道|行者街道|零口街道|相桥街道|雨金街道|马额街道|西泉街道|栎阳街道|新市街道|徐杨街道|交口镇|北田镇|油槐镇|何寨镇|铁炉乡|穆寨乡|小金乡|任留乡|土桥乡"); 
where[11] = new comefrom("长安","|韦曲镇|王曲镇|太乙宫镇|引镇|郭杜镇|子午镇|滦镇|马王镇|杜曲镇|斗门镇|鸣犊镇|细柳镇|纪阳乡|高桥乡|镐京乡|灵沼乡|义井乡|祝村乡|兴隆乡|杜陵乡|申店乡|樊村乡|酒铺乡|马兴乡|魏寨乡|炮里乡|大兆乡|杨庄乡|留村乡|大峪乡|韦兆乡|王莽乡|库峪乡|五台乡|砭峪乡|王庄乡|黄良乡|皇甫乡|内苑乡|五星乡|东大乡|喂子坪乡|祥峪乡|沣惠乡"); 
where[12] = new comefrom("户县","苍游乡|草堂镇|大王镇|甘河镇|甘亭镇|蒋村镇|涝店镇|庞光镇|秦渡镇|石井镇|天桥乡|渭丰乡|五竹乡   |余下镇|玉蝉乡|祖庵镇"); 
where[13] = new comefrom("高陵","|鹿苑镇|通远镇|耿镇|泾渭镇|崇皇乡|湾子乡|榆楚乡|张卜乡"); 
where[14] = new comefrom("其它","|北美洲|南美洲|亚洲|非洲|欧洲|大洋洲"); 
function select() {
with(document.creator.province) { var loca2 = options[selectedIndex].value; }
for(i = 0;i < where.length;i ++) {
if (where[i].loca == loca2) {
loca3 = (where[i].locacity).split("|");
for(j = 0;j < loca3.length;j++) { with(document.creator.city) { length = loca3.length; options[j].text = loca3[j]; options[j].value = loca3[j]; var loca4=options[selectedIndex].value;}}
break;
}}
document.creator.newlocation.value=loca2+loca4;
}
function init() {
with(document.creator.province) {
length = where.length;
for(k=0;k<where.length;k++) { options[k].text = where[k].loca; options[k].value = where[k].loca; }
options[selectedIndex].text = where[0].loca; options[selectedIndex].value = where[0].loca;
}
with(document.creator.city) {
loca3 = (where[0].locacity).split("|");
length = loca3.length;
for(l=0;l<length;l++) { options[l].text = loca3[l]; options[l].value = loca3[l]; }
options[selectedIndex].text = loca3[0]; options[selectedIndex].value = loca3[0];
}}
0 0