這個是我國的各省的城市選擇網頁,你可以按自己的要求進行一些改動.
創新互聯主要為客戶提供服務項目涵蓋了網頁視覺設計、VI標志設計、營銷推廣、網站程序開發、HTML5響應式重慶網站建設公司、手機網站開發、微商城、網站托管及網站維護、WEB系統開發、域名注冊、國內外服務器租用、視頻、平面設計、SEO優化排名。設計、前端、后端三個建站步驟的完善服務體系。一人跟蹤測試的建站服務標準。已經為石涼亭行業客戶提供了網站推廣服務。
html
head
meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
title省份選城市/title
style type="text/css"
!--
form{margin:0;padding:0;}
img{border:0;}
body,select,input,td{ font-family:宋體,Arial; font-size: 12px; font-family: Arial; margin-top: 2px;}
#hd{clear:both;width:700px;margin:0 auto;margin-bottom:.5em;padding:.5em 0 0 0;}
.rlcon a{text-decoration:none;margin-left:.3em;}
.mcon,.lpanel,.panel{text-align:left;}
.lg{float:left;width:185px;padding:.5em 0;}
.rl{float:right;width:100%;margin:0 0 0 -30em;}
.rlcon{text-align:right;height:32px;margin:0 0 0 190px;color:#b8b8b8;border-bottom:1px solid #b5b5b5;overflow:hidden;line-height:45px;}
#lcon{float:left;width:180px;}
#mcon{float:right;width:100%;margin:0 0 0 -20em;}
.mcon{margin:0 0 0 190px;width:570px;}
.xb{border-top:1px solid transparent !important;border-top:0;clear:both;}
#footer {margin:0 auto;width:740px;text-align:center;font-size:12px;height:30px;line-height:30px;border-top:1px solid #666;}
table{clear:both;text-align:left;}
#tip{clear:both;margin:0 auto;width:500px;background-color:#ffffe1;border:1px solid #ACA899;padding:1em;margin:1em;text-align:left;color:#ff0000;}
#tip #cancel{float:right;}
#tip ul{display:block;margin:0;padding:0;list-style-type:none;}
#tip ul li{float:left;width:220px;line-height:1.5em;background-color:#ffffe1;}
#hidenbox{border-top:1px solid transparent !important;border-top:0;clear:both;}
.bnt14{font-size:13px;font-family:宋體,Arial;line-height:18px;height:25px;}
--
/style
/head
html
body
center
form name="personalorder" action="preferences" method="POST"
div id="hd"
TABLE height=20 cellSpacing=0 cellPadding=0 width=714 align=center
border=0
TBODY
TR
TD height="60" vAlign=center DIV class=s5 align=center選擇省市:
select name="prov" onchange="setInd(this)"
option value=0不預定/optionoption value=8610北京/optionoption value=8621上海/optionoption value=8622天津/optionoption value=8623重慶/optionoption value=86311河北/optionoption value=8625江蘇/optionoption value=86571浙江/optionoption value=8620廣東/optionoption value=86351山西/optionoption value=8624遼寧/optionoption value=86431吉林/optionoption value=86451黑龍江/optionoption value=86551安徽/optionoption value=86591福建/optionoption value=86791江西/optionoption value=86531山東/optionoption value=86371河南/optionoption value=8627湖北/optionoption value=86731 selected湖南/optionoption value=8628四川/optionoption value=86851貴州/optionoption value=86871云南/optionoption value=8629陜西/optionoption value=86931甘肅/optionoption value=86971青海/optionoption value=86471內蒙古/optionoption value=86771廣西/optionoption value=86898海南/optionoption value=86891西藏/optionoption value=86951寧夏/optionoption value=86991新疆/optionoption value=88610臺灣/optionoption value=85210香港/optionoption value=85310澳門/option/SELECT
選擇城市:
SELECT name=locid
OPTION value=86731731長沙/OPTIONOPTION value=86731730岳陽/OPTIONOPTION value=86731732湘潭/OPTIONOPTION value=86731733株洲/OPTIONOPTION value=86731734衡陽/OPTIONOPTION value=86731735郴州/OPTIONOPTION value=86731736常德/OPTIONOPTION value=86731737益陽/OPTIONOPTION value=86731738婁底/OPTIONOPTION value=86731739邵陽/OPTIONOPTION value=86731743 selected吉首/OPTIONOPTION value=86731745懷化/OPTIONOPTION value=86731746永州/OPTION
/SELECT
/DIV
script
function cls_inpt(){
var _inpt=document.getElementsByTagName("input");
for(var i=0;i_inpt.length;i++){
if(_inpt[i].name.indexOf('stockid')=0 ||_inpt[i].name.indexOf('showname')=0 ||_inpt[i].name.indexOf('stockname')=0){
_inpt[i].value='';
}
}
return false;
}
cityarray0 = new Array(
"0;不預定");
cityarray8610 = new Array(
"861010;北京");
cityarray8621 = new Array(
"862121;上海");
cityarray8622 = new Array(
"862222;天津");
cityarray8623 = new Array(
"862323;重慶",
"86232314;萬州",
"8623810;涪陵");
cityarray86311 = new Array(
"86311311;石家莊",
"86311310;邯鄲",
"86311312;保定",
"86311313;張家口",
"86311314;承德",
"86311315;唐山",
"86311316;廊坊",
"86311317;滄州",
"86311318;衡水",
"86311319;邢臺",
"86311335;秦皇島");
cityarray8625 = new Array(
"862525;南京",
"8625510;無錫",
"8625511;鎮江",
"8625512;蘇州",
"8625513;南通",
"8625514;揚州",
"8625515;鹽城",
"8625516;徐州",
"8625517;淮安",
"862551701;淮陰",
"8625518;連云港",
"8625519;常州",
"8625523;泰州",
"8625527;宿遷");
cityarray86571 = new Array(
"86571571;杭州",
"86571570;衢州",
"86571572;湖州",
"86571573;嘉興",
"86571574;寧波",
"86571575;紹興",
"86571576;臺州",
"86571577;溫州",
"86571578;麗水",
"86571579;金華",
"86571580;舟山");
cityarray8620 = new Array(
"862020;廣州",
"8620660;汕尾",
"8620662;陽江",
"8620663;揭陽",
"8620668;茂名",
"8620750;江門",
"8620751;韶關",
"8620752;惠州",
"8620753;梅州",
"8620754;汕頭",
"8620755;深圳",
"8620756;珠海",
"8620757;佛山",
"8620758;肇慶",
"8620759;湛江",
"8620760;中山",
"8620762;河源",
"8620763;清遠",
"8620766;云浮",
"8620768;潮州",
"8620769;東莞");
cityarray86351 = new Array(
"86351351;太原",
"86351349;朔州",
"86351350;忻州",
"86351352;大同",
"86351353;陽泉",
"86351354;榆次",
"86351355;長治",
"86351356;晉城",
"86351357;臨汾",
"86351358;呂梁",
"86351359;運城");
cityarray8624 = new Array(
"862424;沈陽",
"8624410;鐵嶺",
"8624411;大連",
"8624412;鞍山",
"8624413;撫順",
"8624414;本溪",
"8624415;丹東",
"8624416;錦州",
"8624417;營口",
"8624418;阜新",
"1378819;遼陽",
"8624421;朝陽",
"8624427;盤錦",
"8624429;葫蘆島");
cityarray86431 = new Array(
"86431431;長春",
"86431432;吉林",
"86431434;四平",
"86431435;通化",
"86431436;白城",
"86431437;遼源",
"86431438;松原",
"86431439;白山");
cityarray86451 = new Array(
"86451451;哈爾濱",
"86451452;齊齊哈爾",
"86451453;牡丹江",
"86451454;佳木斯",
"86451455;綏化",
"86451456;黑河",
"86451458;伊春",
"86451459;大慶",
"86451464;七臺河",
"86451467;雞西",
"86451468;鶴崗",
"86451469;雙鴨山",
"86451470;大興安嶺");
cityarray86551 = new Array(
"86551551;合肥",
"86551550;滁州",
"86551552;蚌埠",
"86551553;蕪湖",
"86551554;淮南",
"86551555;馬鞍山",
"86551556;安慶",
"86551557;宿州",
"86551558;阜陽",
"8655155801;亳州",
"86551559;黃山",
"86551561;淮北",
"86551562;銅陵",
"86551563;宣城",
"86551564;六安",
"86551565;巢湖",
"86551566;池州");
cityarray86591 = new Array(
"86591591;福州",
"86591592;廈門",
"86591593;寧德",
"86591594;莆田",
"86591595;泉州",
"86591596;漳州",
"86591597;龍巖",
"86591598;三明",
"86591599;南平");
cityarray86791 = new Array(
"86791791;南昌",
"86791701;鷹潭",
"86791790;新余",
"86791792;九江",
"86791793;上饒",
"86791794;撫州",
"86791795;宜春",
"86791796;吉安",
"86791797;贛州",
"86791798;景德鎮",
"86791799;萍鄉");
cityarray86531 = new Array(
"86531531;濟南",
"86531530;菏澤",
"86531532;青島",
"86531533;淄博",
"86531534;德州",
"86531535;煙臺",
"86531536;濰坊",
"86531537;濟寧",
"86531539;臨沂",
"86531543;濱州",
"86531546;東營",
"86531631;威海",
"86531632;棗莊",
"86531633;日照",
"86531634;萊蕪",
"86531635;聊城");
cityarray86371 = new Array(
"86371371;鄭州",
"86371370;商丘",
"86371372;安陽",
"86371373;新鄉",
"86371374;許昌",
"86371375;平頂山",
"86371376;信陽",
"86371377;南陽",
"86371378;開封",
"86371379;洛陽",
"86371391;焦作",
"86371392;鶴壁",
"86371393;濮陽",
"86371394;周口",
"86371395;漯河",
"86371396;駐馬店",
"86371398;三門峽");
cityarray8627 = new Array(
"862727;武漢",
"8627710;襄樊",
"8627711;鄂州",
"8627712;孝感",
"8627713;黃岡",
"8627714;黃石",
"8627715;咸寧",
"8627716;荊州",
"8627717;宜昌",
"8627718;恩施",
"8627719;十堰",
"8627722;隨州",
"8627724;荊門");
cityarray86731 = new Array(
"86731731;長沙",
"86731730;岳陽",
"86731732;湘潭",
"86731733;株洲",
"86731734;衡陽",
"86731735;郴州",
"86731736;常德",
"86731737;益陽",
"86731738;婁底",
"86731739;邵陽",
"86731743;吉首",
"86731745;懷化",
"86731746;永州");
cityarray8628 = new Array(
"862828;成都",
"8628812;攀枝花",
"8628813;自貢",
"8628816;綿陽",
"8628817;南充",
"8628818;達州",
"8628825;遂寧",
"8628826;廣安",
"8628827;巴中",
"8628830;瀘州",
"8628831;宜賓",
"8628832;資陽",
"862883201;內江",
"8628833;樂山",
"862883301;眉山",
"862883401;涼山",
"8628835;雅安",
"862883701;阿壩",
"8628838;德陽",
"8628839;廣元");
cityarray86851 = new Array(
"86851851;貴陽",
"86851852;遵義",
"86851853;安順",
"86851854;都勻",
"86851855;凱里",
"86851856;銅仁",
"86851857;畢節",
"86851858;六盤水",
"86851859;興義");
cityarray86871 = new Array(
"86871871;昆明",
"86871691;西雙版納",
"86871692;德宏",
"86871870;昭通",
"86871872;大理",
"8687187303;紅河",
"86871874;曲靖",
"86871875;保山",
"86871876;文山",
"86871877;玉溪",
"86871878;楚雄",
"86871879;思茅",
"86871883;臨滄",
"8687188601;怒江",
"8687188701;迪慶",
"86871888;麗江");
cityarray8629 = new Array(
"862929;西安",
"8629910;咸陽",
"8629911;延安",
"8629912;榆林",
"8629913;渭南",
"8629914;商洛",
"8629915;安康",
"8629916;漢中",
"8629917;寶雞",
"8629919;銅川");
cityarray86931 = new Array(
"86931931;蘭州",
"86931930;臨夏",
"86931932;定西",
"86931933;平涼",
"86931934;慶陽",
"86931935;金昌",
"8693193501;武威",
"86931936;張掖",
"86931937;酒泉",
"8693193701;嘉峪關",
"86931938;天水",
"86931939;隴南",
"86931941;甘南",
"86931943;白銀");
cityarray86971 = new Array(
"86971971;西寧",
"8697197001;海北",
"86971972;海東",
"8697197501;果洛",
"8697197301;黃南",
"86971976;玉樹",
"86971979;格爾木",
"8697197901;海西");
cityarray86471 = new Array(
"86471471;呼和浩特",
"86471470;海拉爾",
"86471472;包頭",
"86471473;烏海",
"86471474;集寧",
"86471475;通遼",
"86471476;赤峰",
"86471478;臨河",
"86471479;錫林浩特",
"86471482;烏蘭浩特",
"86471483;巴彥浩特",
"86471484;鄂爾多斯");
cityarray86771 = new Array(
"86771771;南寧",
"86771770;防城港",
"8677177101;崇左",
"86771772;柳州",
"8677177201;來賓",
"86771773;桂林",
"86771774;梧州",
"8677177401;賀州",
"86771775;玉林",
"8677177501;貴港",
"86771776,;百色",
"86771777,;欽州",
"86771778,;河池",
"86771779,;北海");
cityarray86898 = new Array(
"86898898;海口",
"86898899;三亞",
"8689889901;西沙群島");
cityarray86891 = new Array(
"86891891;拉薩",
"86891892;日喀則",
"86891893;山南",
"86891894;林芝",
"86891895;昌都",
"86891896;那曲",
"86891897;阿里");
cityarray86951 = new Array(
"86951951;銀川",
"86951952;石嘴山",
"86951953;吳忠",
"86951954;固原");
cityarray86991 = new Array(
"86991991;烏魯木齊",
"86991901;塔城",
"86991902;哈密",
"86991903;和田",
"86991906;阿勒泰",
"8699190801;克州",
"86991909;博樂",
"86991990;克拉瑪依",
"86991993;石河子",
"86991994;昌吉",
"86991995;吐魯番",
"86991996;庫爾勒",
"86991997;阿克蘇",
"86991998;喀什",
"86991999;伊犁");
cityarray88610 = new Array(
"8861010;臺北");
cityarray85210 = new Array(
"8521010;香港");
cityarray85310 = new Array(
"8531010;澳門");
function getCitiesFromProvinceID(provinceid) {
if (provinceid == 0) return cityarray0;
if (provinceid == 8610) return cityarray8610;
if (provinceid == 8621) return cityarray8621;
if (provinceid == 8622) return cityarray8622;
if (provinceid == 8623) return cityarray8623;
if (provinceid == 86311) return cityarray86311;
if (provinceid == 8625) return cityarray8625;
if (provinceid == 86571) return cityarray86571;
if (provinceid == 8620) return cityarray8620;
if (provinceid == 86351) return cityarray86351;
if (provinceid == 8624) return cityarray8624;
if (provinceid == 86431) return cityarray86431;
if (provinceid == 86451) return cityarray86451;
if (provinceid == 86551) return cityarray86551;
if (provinceid == 86591) return cityarray86591;
if (provinceid == 86791) return cityarray86791;
if (provinceid == 86531) return cityarray86531;
if (provinceid == 86371) return cityarray86371;
if (provinceid == 8627) return cityarray8627;
if (provinceid == 86731) return cityarray86731;
if (provinceid == 8628) return cityarray8628;
if (provinceid == 86851) return cityarray86851;
if (provinceid == 86871) return cityarray86871;
if (provinceid == 8629) return cityarray8629;
if (provinceid == 86931) return cityarray86931;
if (provinceid == 86971) return cityarray86971;
if (provinceid == 86471) return cityarray86471;
if (provinceid == 86771) return cityarray86771;
if (provinceid == 86898) return cityarray86898;
if (provinceid == 86891) return cityarray86891;
if (provinceid == 86951) return cityarray86951;
if (provinceid == 86991) return cityarray86991;
if (provinceid == 88610) return cityarray88610;
if (provinceid == 85210) return cityarray85210;
if (provinceid == 85310) return cityarray85310;
return new Array();
}
function fillInCities(provinceid) {
document.forms['personalorder']['locid'].length = 0;
var arr = getCitiesFromProvinceID(provinceid);
var cnt = 0;
var isSelected = false;
for(var n=0; narr.length; n++){
newOpt=new Option;
i = arr[n].search(';');
newOpt.text=arr[n].slice(i+1);
newOpt.value=arr[n].slice(0,i);
if (!isSelected){
//newOpt.selected = true;
isSelected = true;
}
document.forms['personalorder']['locid'].options[cnt]=newOpt;
cnt=cnt+1;
}
}
function GetSelectedText(box){
var boxText = '';
for(var i=0; ibox.options.length; i++){
if(box.options[i].selected box.options[i].value != ''){
boxText = box.options[i].value;
}
}
return boxText;
}
function setInd(box) {
ind = GetSelectedText(box);
if(ind != ''){
fillInCities(ind);
}
//alert(ind);
}
/script
/TD
/TR
/TBODY
/TABLE
/body
/html
script language=vbScript
!--
public x(33)
x( 0 )="東城,西城,崇文,宣武,朝陽,豐臺,石景山,海淀,門頭溝,房山,通州,順義,昌平,大興,平谷,懷柔,密云,延慶"
x( 1 )="黃浦,盧灣,徐匯,長寧,靜安,普陀,閘北,虹口,楊浦,閔行,寶山,嘉定,浦東,金山,松江,青浦,南匯,奉賢,崇明"
x( 2 )="和平,東麗,河東,西青,河西,津南,南開,北辰,河北,武清,紅撟,塘沽,漢沽,大港,寧河,靜海,寶坻,薊縣"
x( 3 )="萬州,涪陵,渝中,大渡口,江北,沙坪壩,九龍坡,南岸,北碚,萬盛,雙撟,渝北,巴南,黔江,長壽,綦江,潼南,銅梁,大足,榮昌,壁山,梁平,城口,豐都,墊江,武隆,忠縣,開縣,云陽,奉節,巫山,巫溪,石柱,秀山,酉陽,彭水,江津,合川,永川,南川"
x( 4 )="石家莊,邯鄲,邢臺,保定,張家口,承德,廊坊,唐山,秦皇島,滄州,衡水"
x( 5 )="太原,大同,陽泉,長治,晉城,朔州,呂梁,忻州,晉中,臨汾,運城"
x( 6 )="呼和浩特,包頭,烏海,赤峰,呼倫貝爾盟,阿拉善盟,哲里木盟,興安盟,烏蘭察布盟,錫林郭勒盟,巴彥淖爾盟,伊克昭盟"
x( 7 )="沈陽,大連,鞍山,撫順,本溪,丹東,錦州,營口,阜新,遼陽,盤錦,鐵嶺,朝陽,葫蘆島"
x( 8 )="長春,吉林,四平,遼源,通化,白山,松原,白城,延邊"
x( 9 )="哈爾濱,齊齊哈爾,牡丹江,佳木斯,大慶,綏化,鶴崗,雞西,黑河,雙鴨山,伊春,七臺河,大興安嶺"
x( 10 )="南京,鎮江,蘇州,南通,揚州,鹽城,徐州,連云港,常州,無錫,宿遷,泰州,淮安"
x( 11 )="杭州,寧波,溫州,嘉興,湖州,紹興,金華,衢州,舟山,臺州,麗水"
x( 12 )="合肥,蕪湖,蚌埠,馬鞍山,淮北,銅陵,安慶,黃山,滁州,宿州,池州,淮南,巢湖,阜陽,六安,宣城,亳州"
x( 13 )="福州,廈門,莆田,三明,泉州,漳州,南平,龍巖,寧德"
x( 14 )="南昌市,景德鎮,九江,鷹潭,萍鄉,新馀,贛州,吉安,宜春,撫州,上饒"
x( 15 )="濟南,青島,淄博,棗莊,東營,煙臺,濰坊,濟寧,泰安,威海,日照,萊蕪,臨沂,德州,聊城,濱州,菏澤"
x( 16 )="鄭州,開封,洛陽,平頂山,安陽,鶴壁,新鄉,焦作,濮陽,許昌,漯河,三門峽,南陽,商丘,信陽,周口,駐馬店,濟源"
x( 17 )="武漢,宜昌,荊州,襄樊,黃石,荊門,黃岡,十堰,恩施,潛江,天門,仙桃,隨州,咸寧,孝感,鄂州"
x( 18 )="長沙,常德,株洲,湘潭,衡陽,岳陽,邵陽,益陽,婁底,懷化,郴州,永州,湘西,張家界"
x( 19 )="廣州,深圳,珠海,汕頭,東莞,中山,佛山,韶關,江門,湛江,茂名,肇慶,惠州,梅州,汕尾,河源,陽江,清遠,潮州,揭陽,云浮"
x( 20 )="南寧,柳州,桂林,梧州,北海,防城港,欽州,貴港,玉林,南寧地區,柳州地區,賀州,百色,河池"
x( 21 )="海口,三亞"
x( 22 )="成都,綿陽,德陽,自貢,攀枝花,廣元,內江,樂山,南充,宜賓,廣安,達川,雅安,眉山,甘孜,涼山,瀘州"
x( 23 )="貴陽,六盤水,遵義,安順,銅仁,黔西南,畢節,黔東南,黔南"
x( 24 )="昆明,大理,曲靖,玉溪,昭通,楚雄,紅河,文山,思茅,西雙版納,保山,德宏,麗江,怒江,迪慶,臨滄"
x( 25 )="拉薩,日喀則,山南,林芝,昌都,阿里,那曲"
x( 26 )="西安,寶雞,咸陽,銅川,渭南,延安,榆林,漢中,安康,商洛"
x( 27 )="蘭州,嘉峪關,金昌,白銀,天水,酒泉,張掖,武威,定西,隴南,平涼,慶陽,臨夏,甘南"
x( 28 )="銀川,石嘴山,吳忠,固原"
x( 29 )="西寧,海東,海南,海北,黃南,玉樹,果洛,海西"
x( 30 )="烏魯木齊,石河子,克拉瑪依,伊犁,巴音郭勒,昌吉,克孜勒蘇柯爾克孜,博 爾塔拉,吐魯番,哈密,喀什,和田,阿克蘇"
x( 31 )=""
x( 32 )=""
x( 33 )="臺北,高雄,臺中,臺南,屏東,南投,云林,新竹,彰化,苗栗,嘉義,花蓮,桃園,宜蘭,基隆,臺東,金門,馬祖,澎湖"
function test(a,b)
dim num,x1,i
num =a.selectedIndex
x1=split(x(num),",")
b.options.length=ubound(x1)+1
For i = 0 to ubound(x1)
b.options(i).text =x1(i)
b.options(i).value = x1(i)
next
end function
--
/script
body
select name="a" size=1 onChange="vbscript:test a,b"
option value= 0 北京/option
option value= 1 上海/option
option value= 2 天津/option
option value= 3 重慶/option
option value= 4 河北/option
option value= 5 山西/option
option value= 6 內蒙古/option
option value= 7 遼寧/option
option value= 8 吉林/option
option value= 9 黑龍江/option
option value= 10 江蘇/option
option value= 11 浙江/option
option value= 12 安徽/option
option value= 13 福建/option
option value= 14 江西/option
option value= 15 山東/option
option value= 16 河南/option
option value= 17 湖北/option
option value= 18 湖南/option
option value= 19 廣東/option
option value= 20 廣西/option
option value= 21 海南/option
option value= 22 四川/option
option value= 23 貴州/option
option value= 24 云南/option
option value= 25 西藏/option
option value= 26 陜西/option
option value= 27 甘肅/option
option value= 28 寧夏/option
option value= 29 青海/option
option value= 30 新疆/option
option value= 31 香港/option
option value= 32 澳門/option
option value= 33 臺灣/option
/select
select name="b"
/select
拷貝到記事本.保存為.htm或.asp
這個非常麻煩,給你一個三級的例子,自己看吧,你不給我分都可以,只是想用你一下:
html
head
title網頁特效|xrss.cn/Js|--- 三級下拉菜單 (通用版)/title
meta http-equiv="Content-Type" content="text/html; charset=gb2312"
/head
body
SCRIPT LANGUAGE="JavaScript"
!--
function CreateSelect(_FormName,_SName,_SValue,_Ds,_AllOptionStr,ShowType)
{
//三級關鏈菜單通用版
//作者:海娃, 有問題請到留言。
if (_FormName=="")
_FormName = "all"
var _DsArr = _Ds.split("|")
var _Ds1,_Ds2,_Ds3
var _Ds1 = _DsArr[0]
var _Ds2 = (_DsArr.length1)?_DsArr[1]:_DsArr[0]
var _Ds3 = (_DsArr.length2)?_DsArr[2]:_DsArr[0]
var _SNameArr = _SName.split("|")
var _SName1,_SName2,_SName3
var _SName1 = _SNameArr[0]
var _SName2 = (_SNameArr.length1)?_SNameArr[1]:_SNameArr[0]
var _SName3 = (_SNameArr.length2)?_SNameArr[2]:_SNameArr[0]
var _SValueArr = _SValue.split("|")
var _SValue1,_SValue2,_SValue3
var _SValue1 = _SValueArr[0]
var _SValue2 = (_SValueArr.length1)?_SValueArr[1]:_SValueArr[0]
var _SValue3 = (_SValueArr.length2)?_SValueArr[2]:_SValueArr[0]
if (ShowType==3){
_AllOptionStr = _AllOptionStr.replace(/\(\(/ig,"\(\("+_Ds3+"\^")
_AllOptionStr = _AllOptionStr.replace(/\{\{/ig,"\{\{"+_Ds2+"\(\("+_Ds3+"\*\*")
}
else if(ShowType==2){
_AllOptionStr = _AllOptionStr.replace(/\{\{/ig,"\{\{"+_Ds2+"\(\("+_Ds3+"\*\*")
}
else if(ShowType==1){
_AllOptionStr = _AllOptionStr.replace(/\(\(/ig,"\(\("+_Ds3+"\^")
}
var AllStr = _Ds1 + "{{"+ _Ds2 + "(("+ _Ds3 +"||"+_AllOptionStr
//alert(AllStr)
var _AR0 = AllStr.split("||");
document.writeln("select name=\"" + _SName1 + "\" size=\"1\" onChange=\""+_SName1+"redirect(this.options.selectedIndex)\"");
for (var i1 = 0;i1 _AR0.length;i1++)
{
var Area1Str = _AR0[i1];
var _AR10 = Area1Str.split("{{");
var _AR11 = _AR10[0].split("@");
var Tstr1 = _AR11[0];
var Vstr1 = (_AR11.length==2)?_AR11[1]:_AR11[0]
document.writeln("option value=\""+Vstr1+"\""+Tstr1+"\/option");
}
document.writeln("\/select");
document.writeln("select name=\"" + _SName2 + "\" size=\"1\" onChange=\""+_SName1+"redirect1(this.options.selectedIndex)\"");
var _AR111 = _Ds2.split("@");
var Tstr11 = _AR111[0];
var Vstr11 = (_AR111.length==2)?_AR111[1]:_AR111[0];
document.writeln("option value=\""+Vstr11+"\""+Tstr11+"\/option");
document.writeln("\/select");
document.writeln("select name=\"" + _SName3 + "\" size=\"1\"");
var _AR222 = _Ds3.split("@");
var Tstr22 = _AR222[0];
var Vstr22 = (_AR222.length==2)?_AR222[1]:_AR222[0];
document.writeln("option value=\""+Vstr22+"\""+Tstr22+"\/option");
document.writeln("\/select");
document.writeln("S"+"CRIPT LANGUAGE=\"JavaScript\" defer");
document.writeln("!--");
document.writeln("var "+_SName1+"NewAllStr = \""+ AllStr +"\"");
document.writeln("var "+_SName1+"_AR0 = "+_SName1+"NewAllStr.split(\"||\");");
document.writeln("var "+_SName1+"groups=document."+ _FormName +"." + _SName1 + ".options.length;");
document.writeln("var "+_SName1+"group=new Array("+_SName1+"groups)");
document.writeln("for (i=0; i"+_SName1+"groups; i++){");
document.writeln(" "+_SName1+"group[i]=new Array();");
document.writeln("}");
document.writeln("for (var i1 = 0;i1 "+_SName1+"_AR0.length;i1++){");
document.writeln(" var Area1Str = "+_SName1+"_AR0[i1];");
document.writeln(" var _AR10 = Area1Str.split(\"{{\");");
document.writeln(" var _AR12 = _AR10[1].split(\"**\");");
document.writeln(" for (var i2 = 0;i2 _AR12.length;i2++){");
document.writeln(" var Area2Str = _AR12[i2];");
document.writeln(" var _AR20 = Area2Str.split(\"((\");");
document.writeln(" var _AR211 = _AR20[0].split(\"@\");");
document.writeln(" var Tstr2 = _AR211[0];");
document.writeln(" var Vstr2 = (_AR211.length==2)?_AR211[1]:_AR211[0];");
document.writeln(" "+_SName1+"group[i1][i2]=new Option(Tstr2,Vstr2);");
document.writeln(" }");
document.writeln("}");
document.writeln("var "+_SName1+"temp = document."+ _FormName +"." + _SName2);
document.writeln("function "+_SName1+"redirect(x){");
document.writeln(" for (m="+_SName1+"temp.options.length-1;m0;m--)");
document.writeln(" "+_SName1+"temp.options[m]=null;");
document.writeln(" for (i=0;i"+_SName1+"group[x].length;i++){");
document.writeln(" "+_SName1+"temp.options[i]=new Option("+_SName1+"group[x][i].text,"+_SName1+"group[x][i].value);");
document.writeln(" }");
document.writeln(" "+_SName1+"temp.options[0].selected=true");
document.writeln(" "+_SName1+"redirect1(0)");
document.writeln("}");
document.writeln("var "+_SName1+"Group2s=document."+ _FormName +"." + _SName2 + ".options.length;");
document.writeln("var "+_SName1+"Group2=new Array("+_SName1+"groups);");
document.writeln("for (i=0; i"+_SName1+"groups; i++){");
document.writeln(" "+_SName1+"Group2[i]=new Array("+_SName1+"group[i].length)");
document.writeln(" for (j=0; j"+_SName1+"group[i].length; j++){");
document.writeln(" "+_SName1+"Group2[i][j]=new Array()");
document.writeln(" }");
document.writeln("}");
document.writeln("for (var i1 = 0;i1 "+_SName1+"_AR0.length;i1++){");
document.writeln(" var Area1Str = "+_SName1+"_AR0[i1]");
document.writeln(" var _AR10 = Area1Str.split(\"{{\");");
document.writeln(" var _AR12 = _AR10[1].split(\"**\");");
document.writeln(" for (var i2 = 0;i2 _AR12.length;i2++){");
document.writeln(" var Area2Str = _AR12[i2]");
document.writeln(" var _AR20 = Area2Str.split(\"((\");");
document.writeln(" _AR212 = _AR20[1].split(\"^\");");
document.writeln(" for (var i3 = 0;i3 _AR212.length;i3++){");
document.writeln(" Area3Str = _AR212[i3]");
document.writeln(" _AR3 = Area3Str.split(\"@\");");
document.writeln(" Tstr3 = _AR3[0]");
document.writeln(" Vstr3 = (_AR3.length==2)?_AR3[1]:_AR3[0]");
document.writeln(" "+_SName1+"Group2[i1][i2][i3]=new Option(Tstr3,Vstr3);");
document.writeln(" }");
document.writeln(" }");
document.writeln("}");
document.writeln("var "+_SName1+"temp1=document."+ _FormName +"." + _SName3 + "");
document.writeln("function "+_SName1+"redirect1(y){");
document.writeln(" for (m="+_SName1+"temp1.options.length-1;m0;m--)");
document.writeln(" "+_SName1+"temp1.options[m]=null");
document.writeln(" for (i=0;i"+_SName1+"Group2[document."+ _FormName +"." + _SName1 + ".options.selectedIndex][y].length;i++){");
document.writeln(" "+_SName1+"temp1.options[i]=new Option("+_SName1+"Group2[document."+ _FormName +"." + _SName1 + ".options.selectedIndex][y][i].text," + _SName1 + "Group2[document."+ _FormName +"." + _SName1 + ".options.selectedIndex][y][i].value)");
document.writeln(" }");
document.writeln(" "+_SName1+"temp1.options[0].selected=true");
document.writeln("}");
document.writeln("\/\/--");
document.writeln("\/script");
document.writeln("s"+"cript language=\"JavaScript\"");
document.writeln("!--");
document.writeln("function "+_SName1+"SetValue(){");
document.writeln(" try{");
document.writeln(" if (\""+_SValue1+"\"!=\"\"){");
document.writeln(" document."+ _FormName +"."+_SName1+".value=\""+_SValue1+"\"");
document.writeln(" "+_SName1+"redirect(document."+ _FormName +"."+_SName1+".options.selectedIndex);");
document.writeln(" if (\""+_SValue2+"\"!=\"\"){");
document.writeln(" document."+ _FormName +"."+_SName2+".value=\""+_SValue2+"\"");
document.writeln(" "+_SName1+"redirect1(document."+ _FormName +"."+_SName2+".options.selectedIndex)");
document.writeln(" if (\""+_SValue3+"\"!=\"\")");
document.writeln(" document."+ _FormName +"."+_SName3+".value=\""+_SValue3+"\"");
document.writeln(" }");
document.writeln(" }");
document.writeln(" }");
document.writeln(" catch(e){");
document.writeln(" }");
document.writeln("}");
document.writeln("window.attachEvent(\"onload\","+_SName1+"SetValue)");
document.writeln("\/\/--");
document.writeln("\/script");
}
//--
/script
SCRIPT LANGUAGE="JavaScript"
!--
var AllStr1 = ""
+"東北地區{{"
+"黑龍江((哈爾濱^齊齊哈爾^牡丹江^佳木斯^大慶^綏化^鶴崗^雞西^黑河^雙鴨山^伊春^七臺河^大興安嶺"
+"**吉林((長春^吉林^四平^遼源^通化^白山^松原^白城^延邊"
+"**遼寧((沈陽^大連^鞍山^撫順^本溪^丹東^錦州^營口^阜新^遼陽^盤錦^鐵嶺^朝陽^葫蘆島"
+"||華北地區{{"
+"北京((東城^西城^崇文^宣武^朝陽^豐臺^石景山^海淀^門頭溝^房山^通州^順義^昌平^大興^平谷^懷柔^密云^延慶"
+"**天津((和平^東麗^河東^西青^河西^津南^南開^北辰^河北^武清^紅撟^塘沽^漢沽^大港^寧河^靜海^寶坻^薊縣"
+"**山東((濟南^青島^淄博^棗莊^東營^煙臺^濰坊^濟寧^泰安^威海^日照^萊蕪^臨沂^德州^聊城^濱州^菏澤"
+"**河北((石家莊^邯鄲^邢臺^保定^張家口^承德^廊坊^唐山^秦皇島^滄州^衡水"
+"**河南((鄭州^開封^洛陽^平頂山^安陽^鶴壁^新鄉^焦作^濮陽^許昌^漯河^三門峽^南陽^商丘^信陽^周口^駐馬店^濟源"
+"**山西((太原^大同^陽泉^長治^晉城^朔州^呂梁^忻州^晉中^臨汾^運城"
+"**內蒙古((呼和浩特^包頭^烏海^赤峰^呼倫貝爾盟^阿拉善盟^哲里木盟^興安盟^烏蘭察布盟^錫林郭勒盟^巴彥淖爾盟^伊克昭盟"
+"||華中地區{{"
+"湖北((武漢^宜昌^荊州^襄樊^黃石^荊門^黃岡^十堰^恩施^潛江^天門^仙桃^隨州^咸寧^孝感^鄂州"
+"**湖南((長沙^常德^株洲^湘潭^衡陽^岳陽^邵陽^益陽^婁底^懷化^郴州^永州^湘西^張家界"
+"||華南地區{{"
+"廣東((廣州^深圳^珠海^汕頭^東莞^中山^佛山^韶關^江門^湛江^茂名^肇慶^惠州^梅州^汕尾^河源^陽江^清遠^潮州^揭陽^云浮"
+"**廣西((南寧^柳州^桂林^梧州^北海^防城港^欽州^貴港^玉林^南寧地區^柳州地區^賀州^百色^河池"
+"**福建((福州^廈門^莆田^三明^泉州^漳州^南平^龍巖^寧德"
+"**海南((海口^三亞"
+"||西南地區{{"
+"四川((成都^綿陽^德陽^自貢^攀枝花^廣元^內江^樂山^南充^宜賓^廣安^達川^雅安^眉山^甘孜^涼山^瀘州"
+"**重慶((萬州^涪陵^渝中^大渡口^江北^沙坪壩^九龍坡^南岸^北碚^萬盛^雙撟^渝北^巴南^黔江^長壽^綦江^潼南^銅梁^大足^榮昌^壁山^梁平^城口^豐都^墊江^武隆^忠縣^開縣^云陽^奉節^巫山^巫溪^石柱^秀山^酉陽^彭水^江津^合川^永川^南川"
+"**貴州((貴陽^六盤水^遵義^安順^銅仁^黔西南^畢節^黔東南^黔南"
+"**云南((昆明^大理^曲靖^玉溪^昭通^楚雄^紅河^文山^思茅^西雙版納^保山^德宏^麗江^怒江^迪慶^臨滄"
+"**西藏((拉薩^日喀則^山南^林芝^昌都^阿里^那曲"
+"||西北地區{{"
+"陜西((西安^寶雞^咸陽^銅川^渭南^延安^榆林^漢中^安康^商洛"
+"**甘肅((蘭州^嘉峪關^金昌^白銀^天水^酒泉^張掖^武威^定西^隴南^平涼^慶陽^臨夏^甘南"
+"**寧夏((銀川^石嘴山^吳忠^固原"
+"**青海((西寧^海東^海南^海北^黃南^玉樹^果洛^海西"
+"**新疆((烏魯木齊^石河子^克拉瑪依^伊犁^巴音郭勒^昌吉^克孜勒蘇柯爾克孜^博爾塔拉^吐魯番^哈密^喀什^和田^阿克蘇"
+"||華東地區{{"
+"上海((黃浦^盧灣^徐匯^長寧^靜安^普陀^閘北^虹口^楊浦^閔行^寶山^嘉定^浦東^金山^松江^青浦^南匯^奉賢^崇明"
+"**江蘇((南京^鎮江^蘇州^南通^揚州^鹽城^徐州^連云港^常州^無錫^宿遷^泰州^淮安"
+"**浙江((杭州^寧波^溫州^嘉興^湖州^紹興^金華^衢州^舟山^臺州^麗水"
+"**安徽((合肥^蕪湖^蚌埠^馬鞍山^淮北^銅陵^安慶^黃山^滁州^宿州^池州^淮南^巢湖^阜陽^六安^宣城^亳州"
+"**江西((南昌市^景德鎮^九江^鷹潭^萍鄉^新馀^贛州^吉安^宜春^撫州^上饒"
+"||港澳臺地區{{"
+"香港((香港"
+"**澳門((澳門"
+"**臺灣((臺北^高雄^臺中^臺南^屏東^南投^云林^新竹^彰化^苗栗^嘉義^花蓮^桃園^宜蘭^基隆^臺東^金門^馬祖^澎湖"
+"||其它地區{{"
+"其它((其它"
//--
/SCRIPT
FORM name="HwForm"
HR選擇一次br
SCRIPT LANGUAGE="JavaScript"
CreateSelect("","S_13|S_23|S_33","","請選擇地區@|請選擇省份@|請選擇城市@",AllStr1,0);
/SCRIPT
HR選擇三次br
SCRIPT LANGUAGE="JavaScript"
CreateSelect("HwForm","S_1|S_2|S_3","華北地區|山東|濟寧","請選擇地區@|請選擇省份@|請選擇城市@",AllStr1,3);
/SCRIPT
SCRIPT LANGUAGE="JavaScript"
!--
var AllStr2 = ""
+"筆記本{{"
+"IBM((R32^T40^T42"
+"**DELL((N600^M600"
+"||數碼相機{{"
+"CANON((A75^A80^A85"
+"**SONY((S80^S60"
//--
/SCRIPT
HR選擇二次brSCRIPT LANGUAGE="JavaScript"
CreateSelect("HwForm","S_11|S_21|S_31","筆記本|IBM|T42","請選擇分類@|請選擇品牌@|請選擇系列@",AllStr2,2);
/SCRIPT
HR選擇二次brSCRIPT LANGUAGE="JavaScript"
CreateSelect("HwForm","S_12|S_22|S_32","","請選擇分類@|請選擇品牌@|請選擇系列@",AllStr2,1);
/SCRIPT
/FORM
/body
/html
網頁標題:淮安javascript,淮安市第一人民醫院
文章起源:http://vcdvsql.cn/article42/dsdgehc.html
成都網站建設公司_創新互聯,為您提供網站設計、App開發、關鍵詞優化、服務器托管、手機網站建設、自適應網站
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯