中文(繁体)
<script language="JavaScript"> <!-- //二級菜單var hw_selecttext ="北京|東城^西城^崇文^宣武^朝陽^豐台^石景山^海淀^門頭溝^房山^通州^順義^昌平^大興^平谷^懷柔^密雲^延慶*上海|黃浦^盧灣^徐匯^長寧^靜安^普陀^閘北^虹口^楊浦^閔行^寶山^嘉定^浦東^金山^松江^青浦^南匯^奉賢^崇明*天津|和平^東麗^河東^西青^河西^津南^南開^北辰^河北^武清^紅撟^塘沽^漢沽^大港^寧河^靜海^寶坻^薊縣*重慶|萬州^涪陵^渝中^大渡口^江北^沙坪壩^九龍坡^南岸^北碚^萬盛^雙撟^渝北^巴南^黔江^長壽^綦江^潼南^銅梁^大足^榮昌^壁山^梁平^城口^豐都^墊江^武隆^忠縣^開縣^雲陽^奉節^巫山^巫溪^石柱^秀山^酉陽^彭水^江津^合川^永川^南川*河北|石家莊^邯鄲^邢台^保定^張家口^承德^廊坊^唐山^秦皇島^滄州^衡水*山西|太原^大同^陽泉^長治^晉城^朔州^呂梁^忻州^晉中^臨汾^運城*內蒙古|呼和浩特^包頭^烏海^赤峰^呼倫貝爾盟^阿拉善盟^哲里木盟^興安盟^烏蘭察布盟^錫林郭勒盟^巴彥淖爾盟^伊克昭盟*遼寧|沈陽^大連^鞍山^撫順^本溪^丹東^錦州^營口^阜新^遼陽^盤錦^鐵嶺^朝陽^葫蘆島*吉林|長春^吉林^四平^遼源^通化^白山^松原^白城^延邊*黑龍江|哈爾濱^齊哈爾^牡丹江^佳木斯^大慶節化^鶴崗^雞西^黑河^雙鴨山^伊春^七台河^大興安嶺*江蘇|南京^鎮江^蘇州^南通^揚州^鹽城^徐州^連雲港^常州^無錫^宿遷^泰州^淮安*江江|杭州安浙江^常州^無錫^宿遷^泰州^淮安*江江|杭州^寧波^溫州^嘉興^湖州^紹興^金華^衢州^舟山^台州^麗水*安徽|合肥^蕪湖^蚌埠^馬鞍山^淮北^銅陵^安慶^黃山^滁州^宿州^池州^淮南^六安^宣城^亳州*福建|福州^廈門^莆田^三明^泉州^漳州^南平^龍岩^寧德*江西|南昌市^景德鎮^九江^鷹潭^萍鄉^新馀^嵣州^吉安春^宜春^撫州^上饒*山東|濟南^青島^淄博^棗莊^東營^煙台^濰坊^濟寧^泰安^威海^日照^萊蕪^臨沂^德州^聊城^濱州^菏澤*河南鄭州^開頂蓋^安陽^鶴壁^新鄉^焦作^濮陽^許昌^漯河^三門峽^南陽^商丘^信陽^週口^駐馬店^濟源*湖北|武漢^宜昌^荊州^襄樊^黃石^荊門^黃岡^十堰^恩施特江^天門^仙桃^隨州^鹹寧^孝感^鄂州*湖南|長沙^常德^株洲^湘潭^衡陽^岳陽^邵陽^益陽^婁底^懷化^鄴州^永州^湘西^張家界*廣東|廣州^深圳^珠海^汕頭^東莞^中山^佛山^韶關^江門^湛江^茂名^肇慶^惠州^梅州^汕尾^河源^陽江^清遠^潮州^揭陽^雲浮*廣西|南寧^柳州^桂林^梧州^北海^潮州^揭陽^雲浮*廣西|南寧^柳州^桂林^梧州^北海^潮州^防城港^欽州^貴港^玉林^南寧地區^柳州地區^賀州^百色^河池*海南|海口^三亞*四川|成都^綿陽^德陽^自貢^攀枝花^廣元^內江^樂山^南充^宜賓^廣安^達川^雅安^眉山^甘孜^涼山^瀘州*貴州|貴陽^六盤水^遵義^安順^銅仁^黔西南^畢節^黔東南^黔南*雲南|昆明^大理^曲靖^玉溪^昭通^楚雄^^紅河^文山^思茅^西雙版納^保山^德宏^麗江^怒江^迪慶^臨滄*西藏|拉薩^日喀則^山南^林芝^昌都^阿里^那曲*陝西|西安^寶雞^咸陽^銅川^渭南^延安^榆林^漢中^安康^商洛*甘肅|蘭州^嘉峪關^金昌^白銀^天水^酒泉^張掖^武威^定西^隴南^平涼^慶陽^臨夏^甘南*寧夏|銀川^石嘴山^吳忠^固原*青海|西寧^海東^海南^海北^黃南^玉樹^果洛^海西*新疆|烏魯木齊^石河子^克拉瑪依^伊犁^巴音郭勒^昌吉^克孜勒蘇柯爾克孜^博爾塔拉^吐魯番^哈密^喀什^和田^阿克蘇*香港|*澳門|*台灣|台北^高雄^台中^台南^屏東^南投^雲林^新竹^彰化^苗栗^嘉義^花蓮^桃園^宜蘭^基隆^台東^金門^馬祖^澎湖*其它|北美洲^南美洲^亞洲^非洲^歐洲^大洋洲" //如果文本與值不同,請輸入在文本後加上@值,如:北京@010 |東城@001^西城@002 var TheSplit1 = "*" //北京與上海的分隔符var TheSplit2 = "|" //北京與東城的分隔符var TheSplit3 = "^" //東城與西城的分隔符var TheSplit4 = "@" //文字與值的分隔符,可以省略var hwallselecttext = hw_selecttext var hwdefault_value = "河北唐山" //預設值,在值有相同時有bug。 document.write('<select name="hw_1" onChange = "hw_select()"></select> <select name="hw_2" onChange = "hw_select()"></select> <input class="input" size="15" type="input" value="'+hwdefault_value+'" name="hw">n'); var hwallselecttextarr hwallselecttextarr =arrallselecttext.split(TheSplit1) hwArraylength = hwallselect hwarr.length hwsf hw.leng hwArraylength); hwwhere[0]= new hw_comefrom("請選擇@","請選擇@"); for (var hwl=0;hwl<hwArraylength;hwl++) { eval(hwwhere[hwl+1] = new hw_comefrom( hwallselecttextarr[hwl].split(TheSplit2)[0],hwallselecttextarr[hwl].split(TheSplit2)[1])) } function hw_comefrom(hwSelect_s1,hwSelect_s2) { this.SelectSelect_s1 =hw:s15; hw_select() { with(document.all.hw_1) { var hwSelect_s12 = options[selectedIndex].value; } for(hwi = 0;hwi < hwwhere.length;hwi ++) { if (hwwhere[hwi].hwSelect_s1. indexOf(TheSplit4)!=-1) { var hwThisV = hwwhere[hwi].hwSelect_s1.split(TheSplit4)[1] } else { var hwThisV =where[hwi].hwSelect_s1 } if (hwThisV hwThisV =_where[hwi].hwSelect_s1 } if (hwThisV == hw_hw12) (hwwhere[hwi].hwSelect_s2).split(TheSplit3); for(hwj = 0;hwj < hwSelect_s13.length;hwj++) { with(document.all.hw_2) { length = hwSelect_s13.length; if (hw-hw) if .indexOf(TheSplit4)!=-1) { options[hwj].text = hwSelect_s13[hwj].split(TheSplit4)[0] options[hwj].value = hwSelect_s13[hwj].split(TheSplit4)[1].value = hwSelect_s13[hwj].split(TheSplit4)[1] } else { options[hwj].text = hwSelect_s13[hwj]; options[hwj].value = hwSelect_s13[hwj]; } break hwSelect_s14=options[selectedIndex].value; } } break hw } } document.all.valueue =hwSelect_s12+""+hwSelect_s14; } function hw_init() { with(document.all.hw_1) { length = hwwhere.length; var hwm = 0 for(hwk=0;hwk<hwwhere.length; [hwk].hwSelect_s1.indexOf(TheSplit4)!=-1) { options[hwk].text = hwwhere[hwk].hwSelect_s1.split(TheSplit4)[0]; options[hwk].value = hwwhere[hwk] hwwhere[hwk]. hwSelect_s1.split(TheSplit4)[1]; if (hwdefault_value.indexOf(hwwhere[hwk].hwSelect_s1.split(TheSplit4)[1])!=-1){hwm = hwk} } else { options[hwk].text = hwwhere[hwk].hwSelect_s1; options[hwk].value = hwwhere[hwk].hwSelect_s1; if (hwdefault_value.indexOf(hwwhere[hwk].hwSelect_s1)!=-1){hwm = hwk} } with(document.all.hw_2) { var hwn = 0 hwSelect_s13 = (hwwhere[hwm].hwSelect_s2).split(TheSplit3); length = hwSelect_s13.length; for(hwl=0;hwl<length;hwl++) { if (hwSelect_s13[hwl].indexOf(TheSplit4)!=-1) { options[hwl].text = hwSelect_s13[hwl].split(TheSplit4)[0]; options[hwl].value = hwSelect_s13[hwl]. TheSplit4)[1]; if (hwdefault_value.indexOf(hwSelect_s13[hwl].split(TheSplit4)[1])!=-1){hwn = hwl} } else { options[hwl].text =Select_s13[hwl} hwwl]; options[hwl].value = hwSelect_s13[hwl]; if (hwdefault_value.indexOf(hwSelect_s13[hwl])!=-1){hwn = hwl} } } selectedIndex = hwn } } hw_init(); //-- hw> /script>