select onchange=setcity(); name=prv
創(chuàng)新互聯(lián)公司是一家集網(wǎng)站建設(shè),東西湖企業(yè)網(wǎng)站建設(shè),東西湖品牌網(wǎng)站建設(shè),網(wǎng)站定制,東西湖網(wǎng)站建設(shè)報價,網(wǎng)絡(luò)營銷,網(wǎng)絡(luò)優(yōu)化,東西湖網(wǎng)站推廣為一體的創(chuàng)新建站企業(yè),幫助傳統(tǒng)企業(yè)提升企業(yè)形象加強(qiáng)企業(yè)競爭力??沙浞譂M足這一群體相比中小企業(yè)更為豐富、高端、多元的互聯(lián)網(wǎng)需求。同時我們時刻保持專業(yè)、時尚、前沿,時刻以成就客戶成長自我,堅持不斷學(xué)習(xí)、思考、沉淀、凈化自己,讓我們?yōu)楦嗟钠髽I(yè)打造出實用型網(wǎng)站。
option value=""選擇省份/option
OPTION value=安徽安徽/OPTION
OPTION value=北京北京/OPTION
OPTION value=重慶重慶/OPTION
OPTION value=福建福建/OPTION
OPTION value=甘肅甘肅/OPTION
OPTION value=廣東廣東/OPTION
OPTION value=廣西廣西/OPTION
OPTION value=貴州貴州/OPTION
OPTION value=海南海南/OPTION
OPTION value=河北河北/OPTION
OPTION value=黑龍江黑龍江/OPTION
OPTION value=河南河南/OPTION
OPTION value=香港香港/OPTION
OPTION value=湖北湖北/OPTION
OPTION value=湖南湖南/OPTION
OPTION value=江蘇江蘇/OPTION
OPTION value=江西江西/OPTION
OPTION value=吉林吉林/OPTION
OPTION value=遼寧遼寧/OPTION
OPTION value=澳門澳門/OPTION
OPTION value=內(nèi)蒙古內(nèi)蒙古/OPTION
OPTION value=寧夏寧夏/OPTION
OPTION value=青海青海/OPTION
OPTION value=山東山東/OPTION
OPTION value=上海上海/OPTION
OPTION value=山西山西/OPTION
OPTION value=陜西陜西/OPTION
OPTION value=四川四川/OPTION
OPTION value=臺灣臺灣/OPTION
OPTION value=天津天津/OPTION
OPTION value=新疆新疆/OPTION
OPTION value=西藏西藏/OPTION
OPTION value=云南云南/OPTION
OPTION value=浙江浙江/OPTION
/select
select name=city/select市
SCRIPT language=javascript
!--
function setcity() {
switch (document.form1.prv.value) {
case "" :
var cityOptions = new Array("", "");
break;
case "安徽" :
var cityOptions = new Array(
"合肥", "合肥","安慶", "安慶","蚌埠", "蚌埠","亳州", "亳州","巢湖", "巢湖","滁州", "滁州","阜陽", "阜陽","貴池", "貴池","淮北", "淮北","淮化", "淮化","淮南", "淮南", "黃山", "黃山", "九華山", "九華山", "六安", "六安","馬鞍山", "馬鞍山","宿州", "宿州","銅陵", "銅陵","屯溪", "屯溪","蕪湖", "蕪湖", "宣城", "宣城");
break;
case "北京" :
var cityOptions = new Array(
"北京", "北京","東城","西城","崇文","宣武","朝陽","豐臺","石景山","海淀","門頭溝","房山","通州","順義","昌平","大興","平谷","懷柔","密云","延慶");
break;
case "重慶" :
var cityOptions = new Array(
"重慶", "重慶","萬州","涪陵","渝中","大渡口","江北","沙坪壩","九龍坡","南岸","北碚","萬盛","雙撟","渝北","巴南","黔江","長壽","綦江","潼南","銅梁","大足","榮昌","壁山","梁平","城口","豐都","墊江","武隆","忠縣","開縣","云陽","奉節(jié)","巫山","巫溪","石柱","秀山","酉陽","彭水","江津","合川","永川","南川");
break;
case "福建" :
var cityOptions = new Array(
"福州", "福州","福安", "福安","龍巖", "龍巖","南平", "南平","寧德", "寧德","莆田", "莆田","泉州", "泉州","三明", "三明","邵武", "邵武","石獅", "石獅","永安","永安", "武夷山", "武夷山","廈門", "廈門", "漳州", "漳州");
break;
case "甘肅" :
var cityOptions = new Array(
"蘭州(*)", "蘭州",
"白銀", "白銀",
"定西", "定西",
"敦煌", "敦煌",
"甘南", "甘南",
"金昌", "金昌",
"酒泉", "酒泉",
"臨夏", "臨夏",
"平?jīng)?, "平?jīng)?,
"天水", "天水",
"武都", "武都",
"西峰", "西峰",
"張掖", "張掖");
break;
case "廣東" :
var cityOptions = new Array(
"廣州(*)", "廣州",
"潮陽", "潮陽",
"潮州", "潮州",
"澄海", "澄海",
"東莞", "東莞",
"佛山", "佛山",
"河源", "河源",
"惠州", "惠州",
"江門", "江門",
"揭陽", "揭陽",
"開平", "開平",
"茂名", "茂名",
"梅州", "梅州",
"清遠(yuǎn)", "清遠(yuǎn)",
"汕頭", "汕頭",
"汕尾", "汕尾",
"韶關(guān)", "韶關(guān)",
"深圳", "深圳",
"順德", "順德",
"陽江", "陽江",
"陽江", "陽江",
"英德", "英德",
"云浮", "云浮",
"增城", "增城",
"湛江", "湛江",
"肇慶", "肇慶",
"中山", "中山",
"珠海", "珠海");
break;
case "廣西" :
var cityOptions = new Array(
"南寧(*)", "南寧",
"百色", "百色",
"北海", "北海",
"桂林", "桂林",
"防城港", "防城港",
"河池", "河池",
"柳州", "柳州",
"欽州", "欽州",
"梧州", "梧州",
"玉林", "玉林");
break;
case "貴州" :
var cityOptions = new Array(
"貴陽(*)", "貴陽",
"安順", "安順",
"畢節(jié)", "畢節(jié)",
"都勻", "都勻",
"凱里", "凱里",
"六盤水", "六盤水",
"銅仁", "銅仁",
"興義", "興義",
"玉屏", "玉屏",
"遵義", "遵義");
break;
case "海南" :
var cityOptions = new Array(
"???*)", "海口",
"儋縣", "儋縣",
"陵水", "陵水",
"瓊海", "瓊海",
"三亞", "三亞",
"通什", "通什",
"萬寧", "萬寧");
break;
case "河北" :
var cityOptions = new Array(
"石家莊(*)", "石家莊",
"保定", "保定",
"北戴河", "北戴河",
"滄州", "滄州",
"承德", "承德",
"豐潤", "豐潤",
"邯鄲", "邯鄲",
"衡水", "衡水",
"廊坊", "廊坊",
"南戴河", "南戴河",
"秦皇島", "秦皇島",
"唐山", "唐山",
"新城", "新城",
"邢臺", "邢臺",
"張家口", "張家口");
break;
case "黑龍江" :
var cityOptions = new Array(
"哈爾濱(*)", "哈爾濱",
"北安", "北安",
"大慶", "大慶",
"大興安嶺", "大興安嶺",
"鶴崗", "鶴崗",
"黑河", "黑河",
"佳木斯", "佳木斯",
"雞西", "雞西",
"牡丹江", "牡丹江",
"齊齊哈爾", "齊齊哈爾",
"七臺河", "七臺河",
"雙鴨山", "雙鴨山",
"綏化", "綏化",
"伊春", "伊春");
break;
case "河南" :
var cityOptions = new Array(
"鄭州(*)", "鄭州",
"安陽", "安陽",
"鶴壁", "鶴壁",
"潢川", "潢川",
"焦作", "焦作",
"開封", "開封",
"漯河", "漯河",
"洛陽", "洛陽",
"南陽", "南陽",
"平頂山", "平頂山",
"濮陽", "濮陽",
"三門峽", "三門峽",
"商丘", "商丘",
"新鄉(xiāng)", "新鄉(xiāng)",
"信陽", "信陽",
"許昌", "許昌",
"周口", "周口",
"駐馬店", "駐馬店");
break;
case "香港" :
var cityOptions = new Array(
"香港", "香港",
"九龍", "九龍");
break;
case "湖北" :
var cityOptions = new Array(
"武漢(*)", "武漢",
"恩施", "恩施",
"鄂州", "鄂州",
"黃崗", "黃崗",
"黃石", "黃石",
"荊門", "荊門",
"荊州", "荊州",
"潛江", "潛江",
"十堰", "十堰",
"隨州", "隨州",
"武穴", "武穴",
"仙桃", "仙桃",
"咸寧", "咸寧",
"襄陽", "襄陽",
"襄樊", "襄樊",
"孝感", "孝感",
"宜昌", "宜昌");
break;
case "湖南" :
var cityOptions = new Array(
"長沙(*)", "長沙",
"常德", "常德",
"郴州", "郴州",
"衡陽", "衡陽",
"懷化", "懷化",
"吉首", "吉首",
"婁底", "婁底",
"邵陽", "邵陽",
"湘潭", "湘潭",
"益陽", "益陽",
"岳陽", "岳陽",
"永州", "永州",
"張家界", "張家界",
"株洲", "株洲");
break;
case "江蘇" :
var cityOptions = new Array(
"南京(*)", "南京",
"常熟", "常熟",
"常州", "常州",
"海門", "海門",
"淮安", "淮安",
"江都", "江都",
"江陰", "江陰",
"昆山", "昆山",
"連云港", "連云港",
"南通", "南通",
"啟東", "啟東",
"沭陽", "沭陽",
"蘇州", "蘇州",
"太倉", "太倉",
"泰州", "泰州",
"同里", "同里",
"無錫", "無錫",
"徐州", "徐州",
"鹽城", "鹽城",
"揚(yáng)州", "揚(yáng)州",
"宜興", "宜興",
"儀征", "儀征",
"張家港", "張家港",
"鎮(zhèn)江", "鎮(zhèn)江",
"周莊", "周莊");
break;
case "江西" :
var cityOptions = new Array(
"南昌(*)", "南昌",
"撫州", "撫州",
"贛州", "贛州",
"吉安", "吉安",
"景德鎮(zhèn)", "景德鎮(zhèn)",
"井岡山", "井岡山",
"九江", "九江",
"廬山", "廬山",
"萍鄉(xiāng)", "萍鄉(xiāng)",
"上饒", "上饒",
"新余", "新余",
"宜春", "宜春",
"鷹潭", "鷹潭");
break;
case "吉林" :
var cityOptions = new Array(
"長春(*)", "長春",
"白城", "白城",
"白山", "白山",
"琿春", "琿春",
"遼源", "遼源",
"梅河", "梅河",
"吉林", "吉林",
"四平", "四平",
"松原", "松原",
"通化", "通化",
"延吉", "延吉");
break;
case "遼寧" :
var cityOptions = new Array(
"沈陽(*)", "沈陽",
"鞍山", "鞍山",
"本溪", "本溪",
"朝陽", "朝陽",
"大連", "大連",
"丹東", "丹東",
"撫順", "撫順",
"阜新", "阜新",
"葫蘆島", "葫蘆島",
"錦州", "錦州",
"遼陽", "遼陽",
"盤錦", "盤錦",
"鐵嶺", "鐵嶺",
"營口", "營口");
break;
case "澳門" :
var cityOptions = new Array(
"澳門", "澳門");
break;
case "內(nèi)蒙古" :
var cityOptions = new Array(
"呼和浩特(*)", "呼和浩特",
"阿拉善盟", "阿拉善盟",
"包頭", "包頭",
"赤峰", "赤峰",
"東勝", "東勝",
"海拉爾", "海拉爾",
"集寧", "集寧",
"臨河", "臨河",
"通遼", "通遼",
"烏海", "烏海",
"烏蘭浩特", "烏蘭浩特",
"錫林浩特", "錫林浩特");
break;
case "寧夏" :
var cityOptions = new Array(
"銀川(*)", "銀川",
"固源", "固源",
"石嘴山", "石嘴山",
"吳忠", "吳忠");
break;
case "青海" :
var cityOptions = new Array(
"西寧(*)", "西寧",
"德令哈", "德令哈",
"格爾木", "格爾木",
"共和", "共和",
"海東", "海東",
"海晏", "海晏",
"瑪沁", "瑪沁",
"同仁", "同仁",
"玉樹", "玉樹");
break;
case "山東" :
var cityOptions = new Array(
"濟(jì)南(*)", "濟(jì)南",
"濱州", "濱州",
"兗州", "兗州",
"德州", "德州",
"東營", "東營",
"荷澤", "荷澤",
"濟(jì)寧", "濟(jì)寧",
"萊蕪", "萊蕪",
"聊城", "聊城",
"臨沂", "臨沂",
"蓬萊", "蓬萊",
"青島", "青島",
"曲阜", "曲阜",
"日照", "日照",
"泰安", "泰安",
"濰坊", "濰坊",
"威海", "威海",
"煙臺", "煙臺",
"棗莊", "棗莊",
"淄博", "淄博");
break;
case "上海" :
var cityOptions = new Array(
"上海", "上海",
"崇明", "崇明",
"朱家角", "朱家角");
break;
case "山西" :
var cityOptions = new Array(
"太原(*)", "太原",
"長治", "長治",
"大同", "大同",
"候馬", "候馬",
"晉城", "晉城",
"離石", "離石",
"臨汾", "臨汾",
"寧武", "寧武",
"朔州", "朔州",
"忻州", "忻州",
"陽泉", "陽泉",
"榆次", "榆次",
"運(yùn)城", "運(yùn)城");
break;
case "陜西" :
var cityOptions = new Array(
"西安(*)", "西安",
"安康", "安康",
"寶雞", "寶雞",
"漢中", "漢中",
"渭南", "渭南",
"商州", "商州",
"綏德", "綏德",
"銅川", "銅川",
"咸陽", "咸陽",
"延安", "延安",
"榆林", "榆林");
break;
case "四川" :
var cityOptions = new Array(
"成都(*)", "成都",
"巴中", "巴中",
"達(dá)安", "達(dá)安",
"德陽", "德陽",
"都江堰", "都江堰",
"峨眉山", "峨眉山",
"涪陵", "涪陵",
"廣安", "廣安",
"廣元", "廣元",
"九寨溝", "九寨溝",
"康定", "康定",
"樂山", "樂山",
"瀘州", "瀘州",
"馬爾康", "馬爾康",
"綿陽", "綿陽",
"南充", "南充",
"內(nèi)江", "內(nèi)江",
"攀枝花", "攀枝花",
"遂寧", "遂寧",
"汶川", "汶川",
"西昌", "西昌",
"雅安", "雅安",
"宜賓", "宜賓",
"自貢", "自貢");
break;
case "臺灣" :
var cityOptions = new Array(
"臺北(*)", "臺北",
"基隆", "基隆",
"臺南", "臺南",
"臺中", "臺中");
break;
case "天津" :
var cityOptions = new Array(
"天津", "天津");
break;
case "新疆" :
var cityOptions = new Array(
"烏魯木齊(*)", "烏魯木齊",
"阿克蘇", "阿克蘇",
"阿勒泰", "阿勒泰",
"阿圖什", "阿圖什",
"博樂", "博樂",
"昌吉", "昌吉",
"東山", "東山",
"哈密", "哈密",
"和田", "和田",
"喀什", "喀什",
"克拉瑪依", "克拉瑪依",
"庫車", "庫車",
"庫爾勒", "庫爾勒",
"奎屯", "奎屯",
"石河子", "石河子",
"塔城", "塔城",
"吐魯番", "吐魯番",
"伊寧", "伊寧");
break;
case "西藏" :
var cityOptions = new Array(
"拉薩(*)", "拉薩",
"阿里", "阿里",
"昌都", "昌都",
"林芝", "林芝",
"那曲", "那曲",
"日喀則", "日喀則",
"山南", "山南");
break;
case "云南" :
var cityOptions = new Array(
"昆明(*)", "昆明",
"大理", "大理",
"保山", "保山",
"楚雄", "楚雄",
"大理", "大理",
"東川", "東川",
"個舊", "個舊",
"景洪", "景洪",
"開遠(yuǎn)", "開遠(yuǎn)",
"臨滄", "臨滄",
"麗江", "麗江",
"六庫", "六庫",
"潞西", "潞西",
"曲靖", "曲靖",
"思茅", "思茅",
"文山", "文山",
"西雙版納", "西雙版納",
"玉溪", "玉溪",
"中甸", "中甸",
"昭通", "昭通");
break;
case "浙江" :
var cityOptions = new Array(
"杭州(*)", "杭州",
"安吉", "安吉",
"慈溪", "慈溪",
"定海", "定海",
"奉化", "奉化",
"海鹽", "海鹽",
"黃巖", "黃巖",
"湖州", "湖州",
"嘉興", "嘉興",
"金華", "金華",
"臨安", "臨安",
"臨海", "臨海",
"麗水", "麗水",
"寧波", "寧波",
"甌海", "甌海",
"平湖", "平湖",
"千島湖", "千島湖",
"衢州", "衢州",
"瑞安", "瑞安",
"紹興", "紹興",
"嵊州", "嵊州",
"臺州", "臺州",
"溫嶺", "溫嶺",
"溫州", "溫州");
break;
}
document.form1.city.options.length = 0;
for(var i = 0; i cityOptions.length/2; i++) {
document.form1.city.options[i]=new Option(cityOptions[i*2],cityOptions[i*2+1]);
if (document.form1.city.options[i].value=="") document.form1.city.selectedIndex = i;
}
}
function initprovcity() {
for(var i = 0; i document.form1.prv.options.length; i++) {
if (document.form1.prv.options[i].value=="") document.form1.prv.selectedIndex = i;
}
setcity();
}
onload=initprovcity;
--
/SCRIPT
/select
這個非常麻煩,給你一個三級的例子,自己看吧,你不給我分都可以,只是想用你一下:
html
head
title網(wǎng)頁特效|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)
{
//三級關(guān)鏈菜單通用版
//作者:海娃, 有問題請到留言。
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 = ""
+"東北地區(qū){{"
+"黑龍江((哈爾濱^齊齊哈爾^牡丹江^佳木斯^大慶^綏化^鶴崗^雞西^黑河^雙鴨山^伊春^七臺河^大興安嶺"
+"**吉林((長春^吉林^四平^遼源^通化^白山^松原^白城^延邊"
+"**遼寧((沈陽^大連^鞍山^撫順^本溪^丹東^錦州^營口^阜新^遼陽^盤錦^鐵嶺^朝陽^葫蘆島"
+"||華北地區(qū){{"
+"北京((東城^西城^崇文^宣武^朝陽^豐臺^石景山^海淀^門頭溝^房山^通州^順義^昌平^大興^平谷^懷柔^密云^延慶"
+"**天津((和平^東麗^河?xùn)|^西青^河西^津南^南開^北辰^河北^武清^紅撟^塘沽^漢沽^大港^寧河^靜海^寶坻^薊縣"
+"**山東((濟(jì)南^青島^淄博^棗莊^東營^煙臺^濰坊^濟(jì)寧^泰安^威海^日照^萊蕪^臨沂^德州^聊城^濱州^菏澤"
+"**河北((石家莊^邯鄲^邢臺^保定^張家口^承德^廊坊^唐山^秦皇島^滄州^衡水"
+"**河南((鄭州^開封^洛陽^平頂山^安陽^鶴壁^新鄉(xiāng)^焦作^濮陽^許昌^漯河^三門峽^南陽^商丘^信陽^周口^駐馬店^濟(jì)源"
+"**山西((太原^大同^陽泉^長治^晉城^朔州^呂梁^忻州^晉中^臨汾^運(yùn)城"
+"**內(nèi)蒙古((呼和浩特^包頭^烏海^赤峰^呼倫貝爾盟^阿拉善盟^哲里木盟^興安盟^烏蘭察布盟^錫林郭勒盟^巴彥淖爾盟^伊克昭盟"
+"||華中地區(qū){{"
+"湖北((武漢^宜昌^荊州^襄樊^黃石^荊門^黃岡^十堰^恩施^潛江^天門^仙桃^隨州^咸寧^孝感^鄂州"
+"**湖南((長沙^常德^株洲^湘潭^衡陽^岳陽^邵陽^益陽^婁底^懷化^郴州^永州^湘西^張家界"
+"||華南地區(qū){{"
+"廣東((廣州^深圳^珠海^汕頭^東莞^中山^佛山^韶關(guān)^江門^湛江^茂名^肇慶^惠州^梅州^汕尾^河源^陽江^清遠(yuǎn)^潮州^揭陽^云浮"
+"**廣西((南寧^柳州^桂林^梧州^北海^防城港^欽州^貴港^玉林^南寧地區(qū)^柳州地區(qū)^賀州^百色^河池"
+"**福建((福州^廈門^莆田^三明^泉州^漳州^南平^龍巖^寧德"
+"**海南((??赹三亞"
+"||西南地區(qū){{"
+"四川((成都^綿陽^德陽^自貢^攀枝花^廣元^內(nèi)江^樂山^南充^宜賓^廣安^達(dá)川^雅安^眉山^甘孜^涼山^瀘州"
+"**重慶((萬州^涪陵^渝中^大渡口^江北^沙坪壩^九龍坡^南岸^北碚^萬盛^雙撟^渝北^巴南^黔江^長壽^綦江^潼南^銅梁^大足^榮昌^壁山^梁平^城口^豐都^墊江^武隆^忠縣^開縣^云陽^奉節(jié)^巫山^巫溪^石柱^秀山^酉陽^彭水^江津^合川^永川^南川"
+"**貴州((貴陽^六盤水^遵義^安順^銅仁^黔西南^畢節(jié)^黔東南^黔南"
+"**云南((昆明^大理^曲靖^玉溪^昭通^楚雄^紅河^文山^思茅^西雙版納^保山^德宏^麗江^怒江^迪慶^臨滄"
+"**西藏((拉薩^日喀則^山南^林芝^昌都^阿里^那曲"
+"||西北地區(qū){{"
+"陜西((西安^寶雞^咸陽^銅川^渭南^延安^榆林^漢中^安康^商洛"
+"**甘肅((蘭州^嘉峪關(guān)^金昌^白銀^天水^酒泉^張掖^武威^定西^隴南^平?jīng)鯺慶陽^臨夏^甘南"
+"**寧夏((銀川^石嘴山^吳忠^固原"
+"**青海((西寧^海東^海南^海北^黃南^玉樹^果洛^海西"
+"**新疆((烏魯木齊^石河子^克拉瑪依^伊犁^巴音郭勒^昌吉^克孜勒蘇柯爾克孜^博爾塔拉^吐魯番^哈密^喀什^和田^阿克蘇"
+"||華東地區(qū){{"
+"上海((黃浦^盧灣^徐匯^長寧^靜安^普陀^閘北^虹口^楊浦^閔行^寶山^嘉定^浦東^金山^松江^青浦^南匯^奉賢^崇明"
+"**江蘇((南京^鎮(zhèn)江^蘇州^南通^揚(yáng)州^鹽城^徐州^連云港^常州^無錫^宿遷^泰州^淮安"
+"**浙江((杭州^寧波^溫州^嘉興^湖州^紹興^金華^衢州^舟山^臺州^麗水"
+"**安徽((合肥^蕪湖^蚌埠^馬鞍山^淮北^銅陵^安慶^黃山^滁州^宿州^池州^淮南^巢湖^阜陽^六安^宣城^亳州"
+"**江西((南昌市^景德鎮(zhèn)^九江^鷹潭^萍鄉(xiāng)^新馀^贛州^吉安^宜春^撫州^上饒"
+"||港澳臺地區(qū){{"
+"香港((香港"
+"**澳門((澳門"
+"**臺灣((臺北^高雄^臺中^臺南^屏東^南投^云林^新竹^彰化^苗栗^嘉義^花蓮^桃園^宜蘭^基隆^臺東^金門^馬祖^澎湖"
+"||其它地區(qū){{"
+"其它((其它"
//--
/SCRIPT
FORM name="HwForm"
HR選擇一次br
SCRIPT LANGUAGE="JavaScript"
CreateSelect("","S_13|S_23|S_33","","請選擇地區(qū)@|請選擇省份@|請選擇城市@",AllStr1,0);
/SCRIPT
HR選擇三次br
SCRIPT LANGUAGE="JavaScript"
CreateSelect("HwForm","S_1|S_2|S_3","華北地區(qū)|山東|濟(jì)寧","請選擇地區(qū)@|請選擇省份@|請選擇城市@",AllStr1,3);
/SCRIPT
SCRIPT LANGUAGE="JavaScript"
!--
var AllStr2 = ""
+"筆記本{{"
+"IBM((R32^T40^T42"
+"**DELL((N600^M600"
+"||數(shù)碼相機(jī){{"
+"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
這個是我國的各省的城市選擇網(wǎng)頁,你可以按自己的要求進(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臺灣/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;不預(yù)定");
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;鎮(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;臺州",
"86571577;溫州",
"86571578;麗水",
"86571579;金華",
"86571580;舟山");
cityarray8620 = new Array(
"862020;廣州",
"8620660;汕尾",
"8620662;陽江",
"8620663;揭陽",
"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;陽泉",
"86351354;榆次",
"86351355;長治",
"86351356;晉城",
"86351357;臨汾",
"86351358;呂梁",
"86351359;運(yùn)城");
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;景德鎮(zhèn)",
"86791799;萍鄉(xiāng)");
cityarray86531 = new Array(
"86531531;濟(jì)南",
"86531530;菏澤",
"86531532;青島",
"86531533;淄博",
"86531534;德州",
"86531535;煙臺",
"86531536;濰坊",
"86531537;濟(jì)寧",
"86531539;臨沂",
"86531543;濱州",
"86531546;東營",
"86531631;威海",
"86531632;棗莊",
"86531633;日照",
"86531634;萊蕪",
"86531635;聊城");
cityarray86371 = new Array(
"86371371;鄭州",
"86371370;商丘",
"86371372;安陽",
"86371373;新鄉(xiāng)",
"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;達(dá)州",
"8628825;遂寧",
"8628826;廣安",
"8628827;巴中",
"8628830;瀘州",
"8628831;宜賓",
"8628832;資陽",
"862883201;內(nèi)江",
"8628833;樂山",
"862883301;眉山",
"862883401;涼山",
"8628835;雅安",
"862883701;阿壩",
"8628838;德陽",
"8628839;廣元");
cityarray86851 = new Array(
"86851851;貴陽",
"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;咸陽",
"8629911;延安",
"8629912;榆林",
"8629913;渭南",
"8629914;商洛",
"8629915;安康",
"8629916;漢中",
"8629917;寶雞",
"8629919;銅川");
cityarray86931 = new Array(
"86931931;蘭州",
"86931930;臨夏",
"86931932;定西",
"86931933;平?jīng)?,
"86931934;慶陽",
"86931935;金昌",
"8693193501;武威",
"86931936;張掖",
"86931937;酒泉",
"8693193701;嘉峪關(guān)",
"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
總體說是不錯的, 下面有點(diǎn)答非所問, 但相信對你幫助很大
希望有幫助^^
北京東方金字塔潛能培訓(xùn)學(xué)校(西安)
陜西省西安市雁塔西斜七路1號樓市體育場院內(nèi)
如何才能在學(xué)習(xí)上堅持不懈?
"興趣是最好的老師"!假如沒了她,那花的時間和精力是多大,你應(yīng)該想的到。
所以你應(yīng)該有努力的沖動,你為了什么而學(xué)習(xí),即你的學(xué)習(xí)方向是什么?僅僅是為了這是一種義務(wù)去學(xué)嗎?例如我喜歡文科,而不喜歡數(shù)學(xué),所以我很難把數(shù)學(xué)學(xué)好.那問題是我沒有學(xué)習(xí)的天賦嗎?可想而知,我是因為興趣.但興趣是死的嗎?NO,愛好都可以變,何況是興趣.我為了改變我的興趣,我把自己的過去總結(jié)了,要發(fā)展興趣,我試著自己去做一個幾何難題,我花時間讓自己終于把自己認(rèn)為不可能做出來的題竟然解決了,那鐘成功感簡直比中彩票更快活,從此,我發(fā)現(xiàn)自己是有能力做好的,成功感越多,興趣就越多。
興趣是要自己去找的,是要自己不段積累的,讓自己去做挖金的人,而不要讓自己守株待兔,找興趣就似找樂,那又何樂而不為呢?!
想讓自己提高,就給自己一點(diǎn)時間,讓自己不段的積累,而不至于把她拋棄.
學(xué)習(xí)興趣是慢慢培養(yǎng)出來的,不要把學(xué)習(xí)當(dāng)作負(fù)擔(dān),把它當(dāng)作你的朋友,也許有時候朋友會發(fā)脾氣,你要耐心的對待它。學(xué)習(xí)興趣是學(xué)習(xí)與興趣密不可分的,你要從興趣入手來看待學(xué)習(xí),慢慢就會有所提高。
學(xué)習(xí)方法
掌握科學(xué)的學(xué)習(xí)方法一:學(xué)習(xí)要有明確的目的、目標(biāo)
無論做什么事都要有明確的目的,學(xué)習(xí)尤其如此。目的越明確,學(xué)習(xí)積極性就越高;目標(biāo)越宏偉,為實現(xiàn)目標(biāo)所付出的努力就越多,學(xué)習(xí)意志就越堅強(qiáng)。目標(biāo)有大目標(biāo),小目標(biāo),有遠(yuǎn)期的,也有近期的,小到一節(jié)課,大到一生的志向都屬于此范疇。小目標(biāo)要從屬于大目標(biāo),近期目標(biāo)要為遠(yuǎn)期目標(biāo)做鋪墊。確定學(xué)習(xí)目標(biāo)要根據(jù)一個人的具體情況而定,不能太低,也不能太高。太低不利于意志的培養(yǎng),太高不僅不利于目標(biāo)的實現(xiàn),學(xué)習(xí)積極性也會受到打擊。
掌握科學(xué)的學(xué)習(xí)方法二:掌握科學(xué)的記憶方法
記憶是學(xué)習(xí)中最重要的學(xué)習(xí)手段。首先要有來年搞好的記憶習(xí)慣。不論是哪門學(xué)科都有背誦的任務(wù),要求背誦的必須背誦,以形成習(xí)慣。再就是根據(jù)遺忘規(guī)律去記憶,即即使的重現(xiàn),勤復(fù)習(xí)、多復(fù)習(xí)。當(dāng)天的內(nèi)容當(dāng)天復(fù)習(xí),本周的功課周復(fù)習(xí),一月還有小復(fù)習(xí),考前再做總復(fù)習(xí),這樣學(xué)習(xí)才記憶牢固,才能取得最佳學(xué)習(xí)效果。
掌握科學(xué)的學(xué)習(xí)方法三 抓好學(xué)習(xí)環(huán)節(jié)的關(guān)鍵
學(xué)習(xí)可分為四個主要環(huán)節(jié):預(yù)習(xí)、聽課、復(fù)習(xí)、作業(yè)。每個環(huán)節(jié)都有其特點(diǎn),也有其關(guān)鍵。
預(yù)習(xí):預(yù)習(xí)要養(yǎng)成習(xí)慣,習(xí)慣很重要,既然是習(xí)慣決不能三天打魚兩天曬網(wǎng)。預(yù)習(xí)的時間要根據(jù)實際情況而定,可以在學(xué)習(xí)曰擠時間,也可以在周末,還可以在節(jié)假曰。預(yù)習(xí)要找難點(diǎn),找難點(diǎn)的目的是就是要攻破它,這是預(yù)習(xí)的關(guān)鍵。這能證明一個人的能力,同時也能培養(yǎng)一個人的能力,更會磨練一個人的意志。
聽課:聽課是學(xué)習(xí)時最重要的環(huán)節(jié),會聽課意味著會抓重點(diǎn),能理解老師的意圖。
復(fù)習(xí):復(fù)習(xí)要摸規(guī)律,復(fù)習(xí)的目的是把學(xué)習(xí)內(nèi)容進(jìn)一步鞏固、掌握,以便摸清其內(nèi)在規(guī)律,在運(yùn)用中舉一反三。
作業(yè):作業(yè)要獨(dú)立完成,典型的內(nèi)容要反復(fù)練習(xí),這樣才能形成技能技巧。
掌握科學(xué)的學(xué)習(xí)方法四:及時做好筆記與作業(yè)
記性好不如爛比頭。記筆記是一種良好的聽課習(xí)慣,好筆記不是全記,不是漏記,不能只聽不記,更不能只記不聽??梢杂浽谡n本上、教學(xué)內(nèi)容附近,這樣記錄的內(nèi)容不易丟失,又易和教學(xué)內(nèi)容相聯(lián)系,既實用,又利于今后復(fù)習(xí)。布置作業(yè)的目的是鞏固學(xué)習(xí)的知識。多數(shù)學(xué)生為了完成任務(wù),不復(fù)習(xí)就急于做作業(yè),這不利于知識的鞏固。做作業(yè)前首先閱讀一遍課本內(nèi)容,和老師講課的內(nèi)容對照一下,看一看是否一致。這樣做等于及時地復(fù)習(xí)了一遍,3然后再做作業(yè),既快速又能保證作業(yè)質(zhì)量,達(dá)到最佳的學(xué)習(xí)效果。
掌握科學(xué)的學(xué)習(xí)方法五:交叉學(xué)習(xí)效果好
不少同學(xué)在讀書學(xué)習(xí)時,長時間單一的學(xué)習(xí)同一內(nèi)容,表面上看時間用了不少,但效果并不理想,這是為什么呢?
腦衛(wèi)生學(xué)者告訴我們,人的大腦皮層細(xì)胞是有分工的,學(xué)習(xí)不同學(xué)科的內(nèi)容回引起不同部分的興奮。大腦長久接受同一類信息刺激,使某一部位長久興奮,就容易產(chǎn)生疲勞,降低學(xué)習(xí)效率。若及時轉(zhuǎn)換學(xué)習(xí)內(nèi)容,合理調(diào)節(jié)“興奮灶”,就可以避免大腦某一興奮區(qū)長時間過于緊張,使別的部位出現(xiàn)新的興奮區(qū)。
馬克思的“穿插讀書法”是:當(dāng)閱讀理論書籍感到疲倦時,立刻把書擱下,去讀一種不同的書籍,有時讀詩,有時讀小說。過一會兒,疲倦的大腦得到休息,便又重新研究起理論書籍來。馬克思的讀書方法符合生理科學(xué)。
在讀書求知時,為了充分利用時間,可交叉閱讀內(nèi)容差別較大的不同書籍。在學(xué)習(xí)內(nèi)容的安排上要注意各門學(xué)科交替進(jìn)行,特別是文理交替。學(xué)完語文做物理,讀完政治寫數(shù)學(xué)……學(xué)習(xí)之余,若做一些文體活動,或干點(diǎn)家務(wù)活,句可以使大腦原有的興奮區(qū)得到調(diào)節(jié)。這樣,既能緩解疲勞,又能開闊知識視野,從而延長連續(xù)閱讀的時間,提高學(xué)習(xí)效率。
中學(xué)生學(xué)習(xí)時多接見交叉學(xué)習(xí)的方法,科學(xué)運(yùn)籌時間,情緒飽滿地投入學(xué)習(xí),以取得學(xué)習(xí)的更大效益。
掌握科學(xué)的學(xué)習(xí)方法六:課堂筆記整理“七步法”
由于種種原因,同學(xué)們在課堂上所做的筆記,往往較雜亂,可后覺得不好用。為了鞏固學(xué)習(xí)效果,積累復(fù)習(xí)資料,指導(dǎo)讀寫訓(xùn)練,有必要學(xué)會整理課堂筆記,使之成為清晰、有條理、好用的“導(dǎo)讀助練”的參考材料。
對課堂筆記進(jìn)行整理、加工,其方法有“七”:
一.憶。“趁熱打鐵”,即課后抓緊時間,對照書本、筆記,及時回憶有關(guān)信息。這是整理筆記的重要前提,為筆記提供“可整性。”
二.補(bǔ)。課堂上所做的筆記為的是要跟著老師講課的速度進(jìn)行的,一般的講課速度要較記錄速度快,于是筆記就會出現(xiàn)缺漏、條約、省略、簡單甚至符號代替文字等情況。在“憶”的基礎(chǔ)上,及時作修補(bǔ),使筆記有“完整性”。
三.改。仔細(xì)審閱筆記,對錯字、錯句及其他不夠準(zhǔn)確的地方進(jìn)行修改。其中,特別要注意與解答課后練習(xí),與學(xué)習(xí)目的有關(guān)的內(nèi)容的修改,使筆記有“準(zhǔn)確性”。
四.編。用統(tǒng)一的序號,對筆記內(nèi)容進(jìn)行提綱式的、邏輯性的排列,注明號碼,梳理好整理筆記的先后順序,使筆記有“條理性”。
五.分。以文字(最好是用紅筆)或符號、代號等劃分筆記內(nèi)容的類別。例如,哪些是字詞類,哪些是作家與作品類,哪些作品(課文)是分析類,哪些是問題置疑、探討類,哪些是課后聯(lián)系解答等等。為分類摘抄做好準(zhǔn)備,使筆記有“系統(tǒng)性”。
六.舍。省略無關(guān)緊要的筆記內(nèi)容,使筆記有“簡明性”。
七.記。分類抄錄經(jīng)過整理的筆記。同類的知識,抄在同一本簿,或一本簿的同一部分里,也可以用卡片分類抄錄。這樣,曰后復(fù)習(xí),使用就方便了,按需所取,綱目清晰,快捷好用,使筆記有“資料性”。
語文學(xué)習(xí)應(yīng)養(yǎng)成的習(xí)慣
1.熟讀、背誦課文、美文的習(xí)慣。
2.閱讀優(yōu)秀課外作品,鑒賞、評析、寫筆記的習(xí)慣。
3.推敲語言文字,積累語言材料的習(xí)慣。
4.寫曰記、積累寫作素材的習(xí)慣。
5.規(guī)范書寫,文面整潔美觀的習(xí)慣。
6.聽、看時事,說、寫評論的習(xí)慣。
7.說普通話,講述事理有見解、有條理的習(xí)慣。
8.勤查工具書的習(xí)慣。
作文的要求
1.內(nèi)容務(wù)實
觸景生情,有感而發(fā),或為時而著、或為事而作,做到“情真意隨”。
2.選材求真
“我以我手寫我心,我以我心吐真情”,充分表達(dá)對生活的理解。
3.構(gòu)思求巧
獨(dú)立運(yùn)作,突破思維定勢,一掃“人云亦云”的“鸚鵡學(xué)舌”。
4.立意求深
“仁者見仁,智者見智”,充分發(fā)覺生活本質(zhì)。
5.語言求優(yōu)
努力尋求最佳表達(dá),盡顯才華。
怎樣培養(yǎng)自己良好的閱讀習(xí)慣
良好的閱讀習(xí)慣,對于提高閱讀的自覺性,發(fā)展閱讀能力,增進(jìn)閱讀的理解和速度,提高學(xué)習(xí)成績,都有好處。那么,怎樣培養(yǎng)自己的良好的閱讀習(xí)慣呢?
一.制定閱讀計劃
“凡事情預(yù)則立,不預(yù)則廢?!遍喿x應(yīng)有計劃,這個計劃包括時間、內(nèi)容、要求,實現(xiàn)計劃的措施。計劃的形式不拘,但要切實可行。
二.讀、寫、用相結(jié)合
閱讀后,要把新學(xué)的知識和技巧用于實際。寫,也是一種運(yùn)用。寫心得、記筆記、寫短評,最后達(dá)到用。讀書是學(xué)習(xí),使用也是學(xué)習(xí),而且是很重要的學(xué)習(xí)。
三.虛心求教
在遇到通過運(yùn)用工具書,查資料都不能解決的問題時,要虛心向老師、同學(xué)求教?!叭诵校赜形?guī)熝伞?,“擇其善者而從之,其不善者而改之”?/p>
四.勤于自學(xué)
古人云:“業(yè)精于勤,荒于嬉”“學(xué)問勤中得”,這些名言都是說學(xué)習(xí)要勤。閱讀要靠自己努力,自己能辦的無比辦到,不可等老師教,也不可依賴工具書。要有自覺地學(xué)習(xí)行動,變“要我學(xué)”為“我要學(xué)”,多發(fā)揮自己的主觀能動性。
五.閱讀時要“心到”
宋代的朱熹說過:“讀書應(yīng)三到,謂心到、眼到、口到。心不在此,則眼看不仔細(xì),心眼既不專一,卻只漫浪誦讀,決不能記,記亦不能久也?!痹偌由弦坏剑褪鞘值?,要手勤,要摘抄原句或做上記號,進(jìn)而在寫讀書筆記時將句子用到自己的文章中。四到當(dāng)中,心到手到最為重要。
六.閱讀時應(yīng)多動腦
要根據(jù)自己的能力,對讀物多動腦分析、比較,進(jìn)而去吟詠、體會。魯迅先生主張讀書要認(rèn)真思考、觀察。他說:讀書要“自己思索、自己觀察。倘只看書,便變成書櫥?!彼€指出讀書要先了解一下書的內(nèi)容結(jié)構(gòu),而后思考是什么、為什么、怎么樣。
同學(xué)們應(yīng)在讀書實踐中不斷總結(jié),找到適合自己的閱讀方法,養(yǎng)成習(xí)慣,受益終生。