這個(gè)是我國(guó)的各省的城市選擇網(wǎng)頁(yè),你可以按自己的要求進(jìn)行一些改動(dòng).
創(chuàng)新互聯(lián)是一家專業(yè)提供雙塔企業(yè)網(wǎng)站建設(shè),專注與做網(wǎng)站、網(wǎng)站設(shè)計(jì)、html5、小程序制作等業(yè)務(wù)。10年已為雙塔眾多企業(yè)、政府機(jī)構(gòu)等服務(wù)。創(chuàng)新互聯(lián)專業(yè)網(wǎng)絡(luò)公司優(yōu)惠進(jìn)行中。
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不預(yù)定/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內(nèi)蒙古/optionoption value=86771廣西/optionoption value=86898海南/optionoption value=86891西藏/optionoption value=86951寧夏/optionoption value=86991新疆/optionoption value=88610臺(tái)灣/optionoption value=85210香港/optionoption value=85310澳門/option/SELECT
選擇城市:
SELECT name=locid
OPTION value=86731731長(zhǎng)沙/OPTIONOPTION value=86731730岳陽(yáng)/OPTIONOPTION value=86731732湘潭/OPTIONOPTION value=86731733株洲/OPTIONOPTION value=86731734衡陽(yáng)/OPTIONOPTION value=86731735郴州/OPTIONOPTION value=86731736常德/OPTIONOPTION value=86731737益陽(yáng)/OPTIONOPTION value=86731738婁底/OPTIONOPTION value=86731739邵陽(yáng)/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;不預(yù)定");
cityarray8610 = new Array(
"861010;北京");
cityarray8621 = new Array(
"862121;上海");
cityarray8622 = new Array(
"862222;天津");
cityarray8623 = new Array(
"862323;重慶",
"86232314;萬(wàn)州",
"8623810;涪陵");
cityarray86311 = new Array(
"86311311;石家莊",
"86311310;邯鄲",
"86311312;保定",
"86311313;張家口",
"86311314;承德",
"86311315;唐山",
"86311316;廊坊",
"86311317;滄州",
"86311318;衡水",
"86311319;邢臺(tái)",
"86311335;秦皇島");
cityarray8625 = new Array(
"862525;南京",
"8625510;無(wú)錫",
"8625511;鎮(zhèn)江",
"8625512;蘇州",
"8625513;南通",
"8625514;揚(yáng)州",
"8625515;鹽城",
"8625516;徐州",
"8625517;淮安",
"862551701;淮陰",
"8625518;連云港",
"8625519;常州",
"8625523;泰州",
"8625527;宿遷");
cityarray86571 = new Array(
"86571571;杭州",
"86571570;衢州",
"86571572;湖州",
"86571573;嘉興",
"86571574;寧波",
"86571575;紹興",
"86571576;臺(tái)州",
"86571577;溫州",
"86571578;麗水",
"86571579;金華",
"86571580;舟山");
cityarray8620 = new Array(
"862020;廣州",
"8620660;汕尾",
"8620662;陽(yáng)江",
"8620663;揭陽(yáng)",
"8620668;茂名",
"8620750;江門",
"8620751;韶關(guān)",
"8620752;惠州",
"8620753;梅州",
"8620754;汕頭",
"8620755;深圳",
"8620756;珠海",
"8620757;佛山",
"8620758;肇慶",
"8620759;湛江",
"8620760;中山",
"8620762;河源",
"8620763;清遠(yuǎn)",
"8620766;云浮",
"8620768;潮州",
"8620769;東莞");
cityarray86351 = new Array(
"86351351;太原",
"86351349;朔州",
"86351350;忻州",
"86351352;大同",
"86351353;陽(yáng)泉",
"86351354;榆次",
"86351355;長(zhǎng)治",
"86351356;晉城",
"86351357;臨汾",
"86351358;呂梁",
"86351359;運(yùn)城");
cityarray8624 = new Array(
"862424;沈陽(yáng)",
"8624410;鐵嶺",
"8624411;大連",
"8624412;鞍山",
"8624413;撫順",
"8624414;本溪",
"8624415;丹東",
"8624416;錦州",
"8624417;營(yíng)口",
"8624418;阜新",
"1378819;遼陽(yáng)",
"8624421;朝陽(yáng)",
"8624427;盤錦",
"8624429;葫蘆島");
cityarray86431 = new Array(
"86431431;長(zhǎng)春",
"86431432;吉林",
"86431434;四平",
"86431435;通化",
"86431436;白城",
"86431437;遼源",
"86431438;松原",
"86431439;白山");
cityarray86451 = new Array(
"86451451;哈爾濱",
"86451452;齊齊哈爾",
"86451453;牡丹江",
"86451454;佳木斯",
"86451455;綏化",
"86451456;黑河",
"86451458;伊春",
"86451459;大慶",
"86451464;七臺(tái)河",
"86451467;雞西",
"86451468;鶴崗",
"86451469;雙鴨山",
"86451470;大興安嶺");
cityarray86551 = new Array(
"86551551;合肥",
"86551550;滁州",
"86551552;蚌埠",
"86551553;蕪湖",
"86551554;淮南",
"86551555;馬鞍山",
"86551556;安慶",
"86551557;宿州",
"86551558;阜陽(yáng)",
"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;景德鎮(zhèn)",
"86791799;萍鄉(xiāng)");
cityarray86531 = new Array(
"86531531;濟(jì)南",
"86531530;菏澤",
"86531532;青島",
"86531533;淄博",
"86531534;德州",
"86531535;煙臺(tái)",
"86531536;濰坊",
"86531537;濟(jì)寧",
"86531539;臨沂",
"86531543;濱州",
"86531546;東營(yíng)",
"86531631;威海",
"86531632;棗莊",
"86531633;日照",
"86531634;萊蕪",
"86531635;聊城");
cityarray86371 = new Array(
"86371371;鄭州",
"86371370;商丘",
"86371372;安陽(yáng)",
"86371373;新鄉(xiāng)",
"86371374;許昌",
"86371375;平頂山",
"86371376;信陽(yáng)",
"86371377;南陽(yáng)",
"86371378;開(kāi)封",
"86371379;洛陽(yáng)",
"86371391;焦作",
"86371392;鶴壁",
"86371393;濮陽(yáng)",
"86371394;周口",
"86371395;漯河",
"86371396;駐馬店",
"86371398;三門峽");
cityarray8627 = new Array(
"862727;武漢",
"8627710;襄樊",
"8627711;鄂州",
"8627712;孝感",
"8627713;黃岡",
"8627714;黃石",
"8627715;咸寧",
"8627716;荊州",
"8627717;宜昌",
"8627718;恩施",
"8627719;十堰",
"8627722;隨州",
"8627724;荊門");
cityarray86731 = new Array(
"86731731;長(zhǎng)沙",
"86731730;岳陽(yáng)",
"86731732;湘潭",
"86731733;株洲",
"86731734;衡陽(yáng)",
"86731735;郴州",
"86731736;常德",
"86731737;益陽(yáng)",
"86731738;婁底",
"86731739;邵陽(yáng)",
"86731743;吉首",
"86731745;懷化",
"86731746;永州");
cityarray8628 = new Array(
"862828;成都",
"8628812;攀枝花",
"8628813;自貢",
"8628816;綿陽(yáng)",
"8628817;南充",
"8628818;達(dá)州",
"8628825;遂寧",
"8628826;廣安",
"8628827;巴中",
"8628830;瀘州",
"8628831;宜賓",
"8628832;資陽(yáng)",
"862883201;內(nèi)江",
"8628833;樂(lè)山",
"862883301;眉山",
"862883401;涼山",
"8628835;雅安",
"862883701;阿壩",
"8628838;德陽(yáng)",
"8628839;廣元");
cityarray86851 = new Array(
"86851851;貴陽(yáng)",
"86851852;遵義",
"86851853;安順",
"86851854;都勻",
"86851855;凱里",
"86851856;銅仁",
"86851857;畢節(jié)",
"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;咸陽(yáng)",
"8629911;延安",
"8629912;榆林",
"8629913;渭南",
"8629914;商洛",
"8629915;安康",
"8629916;漢中",
"8629917;寶雞",
"8629919;銅川");
cityarray86931 = new Array(
"86931931;蘭州",
"86931930;臨夏",
"86931932;定西",
"86931933;平?jīng)?,
"86931934;慶陽(yáng)",
"86931935;金昌",
"8693193501;武威",
"86931936;張掖",
"86931937;酒泉",
"8693193701;嘉峪關(guān)",
"86931938;天水",
"86931939;隴南",
"86931941;甘南",
"86931943;白銀");
cityarray86971 = new Array(
"86971971;西寧",
"8697197001;海北",
"86971972;海東",
"8697197501;果洛",
"8697197301;黃南",
"86971976;玉樹(shù)",
"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;來(lái)賓",
"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;博樂(lè)",
"86991990;克拉瑪依",
"86991993;石河子",
"86991994;昌吉",
"86991995;吐魯番",
"86991996;庫(kù)爾勒",
"86991997;阿克蘇",
"86991998;喀什",
"86991999;伊犁");
cityarray88610 = new Array(
"8861010;臺(tái)北");
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
學(xué)習(xí)JavaScript技術(shù)需要四個(gè)月到六個(gè)月的時(shí)間,在學(xué)員受到培訓(xùn)的期間,能夠?qū)W習(xí)到很多關(guān)于JS的技術(shù),從基礎(chǔ)的到高級(jí)逐漸延伸。JavaScript是一種腳本語(yǔ)言,常用于網(wǎng)頁(yè)客戶端編程,使網(wǎng)頁(yè)在客戶端瀏覽器中,實(shí)現(xiàn)更多地動(dòng)態(tài)功能,表現(xiàn)出更加豐富的視覺(jué)效果。
如果只會(huì)一門技術(shù)的話,會(huì)不會(huì)太窄了呢?好的Web前端開(kāi)發(fā)工程師,需要會(huì)很多東西的哦,處理客戶端和服務(wù)器端的交互,做好頁(yè)面優(yōu)化,做好SEO,javascript方向我有一哥們?cè)诒本└氵@個(gè),你有工作經(jīng)驗(yàn),如果技術(shù)可以的話,北京至少5000+吧。
發(fā)展的話,我了解到的是處理客戶端和服務(wù)器端的交互,做好頁(yè)面優(yōu)化,做好SEO,還要會(huì)基本的HTML,Javascript,CSS等Web前端技術(shù),如果還會(huì)網(wǎng)頁(yè)設(shè)計(jì)就更好了,企業(yè)喜歡懂后臺(tái)開(kāi)發(fā),懂?dāng)?shù)據(jù)庫(kù)的還懂前端開(kāi)發(fā),還懂頁(yè)面設(shè)計(jì),還懂SEO優(yōu)化的,當(dāng)然會(huì)了這些,我感覺(jué)工資就會(huì)很高了。
當(dāng)前題目:javascript天津,校園網(wǎng)禁止進(jìn)入JAVASCRIPT
文章URL:http://jinyejixie.com/article28/dssdccp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供軟件開(kāi)發(fā)、服務(wù)器托管、網(wǎng)頁(yè)設(shè)計(jì)公司、動(dòng)態(tài)網(wǎng)站、響應(yīng)式網(wǎng)站、網(wǎng)站設(shè)計(jì)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)