jsp联动下拉列表怎摸实现

jsp联动下拉列表怎摸实现,第1张

<html>

<head>

<title>三级下拉菜单 (通用版)</title>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

</head>

<body>

<SCRIPT LANGUAGE="JavaScript">

<!--

function CreateSelect(_FormName,_SName,_SValue,_Ds,_AllOptionStr,ShowType)

{

//三级关链菜单通用版

//作者:海娃, 有问题请到http://www51windowsNet留言。

if (_FormName=="")

_FormName = "all"

var _DsArr = _Dssplit("|")

var _Ds1,_Ds2,_Ds3

var _Ds1 = _DsArr[0]

var _Ds2 = (_DsArrlength>1)_DsArr[1]:_DsArr[0]

var _Ds3 = (_DsArrlength>2)_DsArr[2]:_DsArr[0]

var _SNameArr = _SNamesplit("|")

var _SName1,_SName2,_SName3

var _SName1 = _SNameArr[0]

var _SName2 = (_SNameArrlength>1)_SNameArr[1]:_SNameArr[0]

var _SName3 = (_SNameArrlength>2)_SNameArr[2]:_SNameArr[0]

var _SValueArr = _SValuesplit("|")

var _SValue1,_SValue2,_SValue3

var _SValue1 = _SValueArr[0]

var _SValue2 = (_SValueArrlength>1)_SValueArr[1]:_SValueArr[0]

var _SValue3 = (_SValueArrlength>2)_SValueArr[2]:_SValueArr[0]

if (ShowType==3){

_AllOptionStr = _AllOptionStrreplace(/\(\(/ig,"\(\("+_Ds3+"\^")

_AllOptionStr = _AllOptionStrreplace(/\{\{/ig,"\{\{"+_Ds2+"\(\("+_Ds3+"\\")

}

else if(ShowType==2){

_AllOptionStr = _AllOptionStrreplace(/\{\{/ig,"\{\{"+_Ds2+"\(\("+_Ds3+"\\")

}

else if(ShowType==1){

_AllOptionStr = _AllOptionStrreplace(/\(\(/ig,"\(\("+_Ds3+"\^")

}

var AllStr = _Ds1 + "{{"+ _Ds2 + "(("+ _Ds3 +"||"+_AllOptionStr

//alert(AllStr)

var _AR0 = AllStrsplit("||");

documentwriteln("<select name=\"" + _SName1 + "\" size=\"1\" onChange=\""+_SName1+"redirect(thisoptionsselectedIndex)\">");

for (var i1 = 0;i1 < _AR0length;i1++)

{

var Area1Str = _AR0[i1];

var _AR10 = Area1Strsplit("{{");

var _AR11 = _AR10[0]split("@");

var Tstr1 = _AR11[0];

var Vstr1 = (_AR11length==2)_AR11[1]:_AR11[0]

documentwriteln("<option value=\""+Vstr1+"\">"+Tstr1+"<\/option>");

}

documentwriteln("<\/select>");

documentwriteln("<select name=\"" + _SName2 + "\" size=\"1\" onChange=\""+_SName1+"redirect1(thisoptionsselectedIndex)\">");

var _AR111 = _Ds2split("@");

var Tstr11 = _AR111[0];

var Vstr11 = (_AR111length==2)_AR111[1]:_AR111[0];

documentwriteln("<option value=\""+Vstr11+"\">"+Tstr11+"<\/option>");

documentwriteln("<\/select>");

documentwriteln("<select name=\"" + _SName3 + "\" size=\"1\">");

var _AR222 = _Ds3split("@");

var Tstr22 = _AR222[0];

var Vstr22 = (_AR222length==2)_AR222[1]:_AR222[0];

documentwriteln("<option value=\""+Vstr22+"\">"+Tstr22+"<\/option>");

documentwriteln("<\/select>");

documentwriteln("<S"+"CRIPT LANGUAGE=\"JavaScript\" defer>");

documentwriteln("<!--");

documentwriteln("var "+_SName1+"NewAllStr = \""+ AllStr +"\"");

documentwriteln("var "+_SName1+"_AR0 = "+_SName1+"NewAllStrsplit(\"||\");");

documentwriteln("var "+_SName1+"groups=document"+ _FormName +"" + _SName1 + "optionslength;");

documentwriteln("var "+_SName1+"group=new Array("+_SName1+"groups)");

documentwriteln("for (i=0; i<"+_SName1+"groups; i++){");

documentwriteln(" "+_SName1+"group[i]=new Array();");

documentwriteln("}");

documentwriteln("for (var i1 = 0;i1 < "+_SName1+"_AR0length;i1++){");

documentwriteln(" var Area1Str = "+_SName1+"_AR0[i1];");

documentwriteln(" var _AR10 = Area1Strsplit(\"{{\");");

documentwriteln(" var _AR12 = _AR10[1]split(\"\");");

documentwriteln(" for (var i2 = 0;i2 < _AR12length;i2++){");

documentwriteln(" var Area2Str = _AR12[i2];");

documentwriteln(" var _AR20 = Area2Strsplit(\"((\");");

documentwriteln(" var _AR211 = _AR20[0]split(\"@\");");

documentwriteln(" var Tstr2 = _AR211[0];");

documentwriteln(" var Vstr2 = (_AR211length==2)_AR211[1]:_AR211[0];");

documentwriteln(" "+_SName1+"group[i1][i2]=new Option(Tstr2,Vstr2);");

documentwriteln(" }");

documentwriteln("}");

documentwriteln("var "+_SName1+"temp = document"+ _FormName +"" + _SName2);

documentwriteln("function "+_SName1+"redirect(x){");

documentwriteln(" for (m="+_SName1+"tempoptionslength-1;m>0;m--)");

documentwriteln(" "+_SName1+"tempoptions[m]=null;");

documentwriteln(" for (i=0;i<"+_SName1+"group[x]length;i++){");

documentwriteln(" "+_SName1+"tempoptions[i]=new Option("+_SName1+"group[x][i]text,"+_SName1+"group[x][i]value);");

documentwriteln(" }");

documentwriteln(" "+_SName1+"tempoptions[0]selected=true");

documentwriteln(" "+_SName1+"redirect1(0)");

documentwriteln("}");

documentwriteln("var "+_SName1+"Group2s=document"+ _FormName +"" + _SName2 + "optionslength;");

documentwriteln("var "+_SName1+"Group2=new Array("+_SName1+"groups);");

documentwriteln("for (i=0; i<"+_SName1+"groups; i++){");

documentwriteln(" "+_SName1+"Group2[i]=new Array("+_SName1+"group[i]length)");

documentwriteln(" for (j=0; j<"+_SName1+"group[i]length; j++){");

documentwriteln(" "+_SName1+"Group2[i][j]=new Array()");

documentwriteln(" }");

documentwriteln("}");

documentwriteln("for (var i1 = 0;i1 < "+_SName1+"_AR0length;i1++){");

documentwriteln(" var Area1Str = "+_SName1+"_AR0[i1]");

documentwriteln(" var _AR10 = Area1Strsplit(\"{{\");");

documentwriteln(" var _AR12 = _AR10[1]split(\"\");");

documentwriteln(" for (var i2 = 0;i2 < _AR12length;i2++){");

documentwriteln(" var Area2Str = _AR12[i2]");

documentwriteln(" var _AR20 = Area2Strsplit(\"((\");");

documentwriteln(" _AR212 = _AR20[1]split(\"^\");");

documentwriteln(" for (var i3 = 0;i3 < _AR212length;i3++){");

documentwriteln(" Area3Str = _AR212[i3]");

documentwriteln(" _AR3 = Area3Strsplit(\"@\");");

documentwriteln(" Tstr3 = _AR3[0]");

documentwriteln(" Vstr3 = (_AR3length==2)_AR3[1]:_AR3[0]");

documentwriteln(" "+_SName1+"Group2[i1][i2][i3]=new Option(Tstr3,Vstr3);");

documentwriteln(" }");

documentwriteln(" }");

documentwriteln("}");

documentwriteln("var "+_SName1+"temp1=document"+ _FormName +"" + _SName3 + "");

documentwriteln("function "+_SName1+"redirect1(y){");

documentwriteln(" for (m="+_SName1+"temp1optionslength-1;m>0;m--)");

documentwriteln(" "+_SName1+"temp1options[m]=null");

documentwriteln(" for (i=0;i<"+_SName1+"Group2[document"+ _FormName +"" + _SName1 + "optionsselectedIndex][y]length;i++){");

documentwriteln(" "+_SName1+"temp1options[i]=new Option("+_SName1+"Group2[document"+ _FormName +"" + _SName1 + "optionsselectedIndex][y][i]text," + _SName1 + "Group2[document"+ _FormName +"" + _SName1 + "optionsselectedIndex][y][i]value)");

documentwriteln(" }");

documentwriteln(" "+_SName1+"temp1options[0]selected=true");

documentwriteln("}");

documentwriteln("\/\/-->");

documentwriteln("<\/script>");

documentwriteln("<s"+"cript language=\"JavaScript\">");

documentwriteln("<!--");

documentwriteln("function "+_SName1+"SetValue(){");

documentwriteln(" try{");

documentwriteln(" if (\""+_SValue1+"\"!=\"\"){");

documentwriteln(" document"+ _FormName +""+_SName1+"value=\""+_SValue1+"\"");

documentwriteln(" "+_SName1+"redirect(document"+ _FormName +""+_SName1+"optionsselectedIndex);");

documentwriteln(" if (\""+_SValue2+"\"!=\"\"){");

documentwriteln(" document"+ _FormName +""+_SName2+"value=\""+_SValue2+"\"");

documentwriteln(" "+_SName1+"redirect1(document"+ _FormName +""+_SName2+"optionsselectedIndex)");

documentwriteln(" if (\""+_SValue3+"\"!=\"\")");

documentwriteln(" document"+ _FormName +""+_SName3+"value=\""+_SValue3+"\"");

documentwriteln(" }");

documentwriteln(" }");

documentwriteln(" }");

documentwriteln(" catch(e){");

documentwriteln(" }");

documentwriteln("}");

documentwriteln("windowattachEvent(\"onload\","+_SName1+"SetValue)");

documentwriteln("\/\/-->");

documentwriteln("<\/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>选择二次<br><SCRIPT LANGUAGE="JavaScript">

CreateSelect("HwForm","S_11|S_21|S_31","笔记本|IBM|T42","请选择分类@|请选择品牌@|请选择系列@",AllStr2,2);

</SCRIPT>

<HR>选择二次<br><SCRIPT LANGUAGE="JavaScript">

CreateSelect("HwForm","S_12|S_22|S_32","","请选择分类@|请选择品牌@|请选择系列@",AllStr2,1);

</SCRIPT>

</FORM>

</body>

</html>

 香港沙田新城市广场没有ck专柜。

 香港ck专柜有:

  CHINA HK CITY

 尖沙咀广东道33号, 中港城高层地下95号铺

 TEL #+852 2757-1998

 09:00AM-08:30PM (MON-SUN)

  CITYWALK

 荃新天地一期自然长廊八专柜

 TEL # +852 2518 9959

 12:00AM-9:00PM(MON-SUN)

  CWB SOGO

 铜锣湾崇光百货新翼地库一楼27号铺

 TEL # +852 2572-4888

 10:00AM-10:00PM (MON-SUN)/10:30PM(FRI-SAT)

  K11

 尖沙咀河内道18号K11购物艺术馆地库2层212号铺

 TEL # +852 2518-9709

 10:00AM-10:00PM (MON-SUN)

  LANGHAM PLACE

 旺角朗豪坊叁楼 L3-05号铺

 TEL # +852 3514-9268

 11:00AM-11:00PM (MON-SUN)

  MOKO

 旺角新世纪广场一楼170A号铺

 TEL # +852 2518-9955

 10:00AM- 10:00PM(MON-SUN)

  PLAZA HOLLYWOOD

 钻石山荷里活广场146A号铺

 TEL # +852 2328-6138

 12:00PM-9:00PM (MON-SUN)

  SHEUNG SHUI LANDMARK NORTH

 上水龙琛路39号上水广场二楼211号铺

 TEL # +852 2613-2772

 10:00AM-09:30PM (MON-SUN)

  THE ONE

 尖沙咀弥敦道100号THE ONE商场UG203号铺

 TEL # +852 2319-0813

 11:00AM-10:00PM (MON-SUN)

  TIMES SQUARE

 铜锣湾时代广场二层地库B224B铺

 TEL # +852 2506-2508

 10:00AM-10:00PM (MON-SUN)

  TST SOGO

 尖沙咀祟光百货一楼32C号铺

 TEL # +852 3911-1944

 10:00AM-10:00PM (MON-SUN)

  TUEN MUN TOWN PLAZA

 屯门屯门市广场1期2楼2212号铺

 TEL # +852 2518-9947

 10:30AM–10:00PM(MON-SUN)

  YOHO MALL II

 元朗形点 II 一楼A137号铺

 TEL # +852 2518 9960

 10:30AM-9:00PM(MON-SUN)

 品牌介绍

 Calvin Klein曾经连续四度获得知名的服装奖项;旗下的相关产品更是层出不穷,声势极为惊人。作为全方位发展的时尚品牌,Calvin Klein旗下一共有三个主要的服装路线:高级时装的Calvin Klein collection,高级成衣的CK Calvin Klein和牛仔系列的Calvin Klein Jeans而配件产品的种类则涵括了香水、眼镜、袜子、内衣、睡衣、泳衣以及家饰用品的方方面面。

 从1968年开始建立自己的公司到现在,Calvin Klein已在时装界纵横了50年,享有盛名,并被认为是当今美国时尚的代表人物。他认为今日的美国时尚是现代,极简,舒适,华丽,休闲又不失优雅气息,这也是Calvin Klein的设计哲学。他说:“我同时发现美式风格的本质也具有国际化的特征。就象纽约,他并不是一座典型的美国城市,而是一座典型的国际都市。伦敦,东京或是汉城也是一样。居住在这些城市的人会对我的设计做出回应,是因为他们的生活和需求都十分相似。现代人不论居住在哪儿,都有其共通性。”

<SCRIPT LANGUAGE="JavaScript">

<!--

function CreateSelect(_FormName,_SName,_SValue,_Ds,_AllOptionStr,ShowType)

{

//三级关链菜单通用版

//作者:海娃, 有问题请到http://www51windowsNet留言。

if (_FormName=="")

_FormName = "all"

var _DsArr = _Dssplit("|")

var _Ds1,_Ds2,_Ds3

var _Ds1 = _DsArr[0]

var _Ds2 = (_DsArrlength>1)_DsArr[1]:_DsArr[0]

var _Ds3 = (_DsArrlength>2)_DsArr[2]:_DsArr[0]

var _SNameArr = _SNamesplit("|")

var _SName1,_SName2,_SName3

var _SName1 = _SNameArr[0]

var _SName2 = (_SNameArrlength>1)_SNameArr[1]:_SNameArr[0]

var _SName3 = (_SNameArrlength>2)_SNameArr[2]:_SNameArr[0]

var _SValueArr = _SValuesplit("|")

var _SValue1,_SValue2,_SValue3

var _SValue1 = _SValueArr[0]

var _SValue2 = (_SValueArrlength>1)_SValueArr[1]:_SValueArr[0]

var _SValue3 = (_SValueArrlength>2)_SValueArr[2]:_SValueArr[0]

if (ShowType==3){

_AllOptionStr = _AllOptionStrreplace(/\(\(/ig,"\(\("+_Ds3+"\^")

_AllOptionStr = _AllOptionStrreplace(/\{\{/ig,"\{\{"+_Ds2+"\(\("+_Ds3+"\\")

}

else if(ShowType==2){

_AllOptionStr = _AllOptionStrreplace(/\{\{/ig,"\{\{"+_Ds2+"\(\("+_Ds3+"\\")

}

else if(ShowType==1){

_AllOptionStr = _AllOptionStrreplace(/\(\(/ig,"\(\("+_Ds3+"\^")

}

var AllStr = _Ds1 + "{{"+ _Ds2 + "(("+ _Ds3 +"||"+_AllOptionStr

//alert(AllStr)

var _AR0 = AllStrsplit("||");

documentwriteln("<select name=\"" + _SName1 + "\" size=\"1\" onChange=\""+_SName1+"redirect(thisoptionsselectedIndex)\">");

for (var i1 = 0;i1 < _AR0length;i1++)

{

var Area1Str = _AR0[i1];

var _AR10 = Area1Strsplit("{{");

var _AR11 = _AR10[0]split("@");

var Tstr1 = _AR11[0];

var Vstr1 = (_AR11length==2)_AR11[1]:_AR11[0]

documentwriteln("<option value=\""+Vstr1+"\">"+Tstr1+"<\/option>");

}

documentwriteln("<\/select>");

documentwriteln("<select name=\"" + _SName2 + "\" size=\"1\" onChange=\""+_SName1+"redirect1(thisoptionsselectedIndex)\">");

var _AR111 = _Ds2split("@");

var Tstr11 = _AR111[0];

var Vstr11 = (_AR111length==2)_AR111[1]:_AR111[0];

documentwriteln("<option value=\""+Vstr11+"\">"+Tstr11+"<\/option>");

documentwriteln("<\/select>");

documentwriteln("<select name=\"" + _SName3 + "\" size=\"1\">");

var _AR222 = _Ds3split("@");

var Tstr22 = _AR222[0];

var Vstr22 = (_AR222length==2)_AR222[1]:_AR222[0];

documentwriteln("<option value=\""+Vstr22+"\">"+Tstr22+"<\/option>");

documentwriteln("<\/select>");

documentwriteln("<S"+"CRIPT LANGUAGE=\"JavaScript\" defer>");

documentwriteln("<!--");

documentwriteln("var "+_SName1+"NewAllStr = \""+ AllStr +"\"");

documentwriteln("var "+_SName1+"_AR0 = "+_SName1+"NewAllStrsplit(\"||\");");

documentwriteln("var "+_SName1+"groups=document"+ _FormName +"" + _SName1 + "optionslength;");

documentwriteln("var "+_SName1+"group=new Array("+_SName1+"groups)");

documentwriteln("for (i=0; i<"+_SName1+"groups; i++){");

documentwriteln(" "+_SName1+"group[i]=new Array();");

documentwriteln("}");

documentwriteln("for (var i1 = 0;i1 < "+_SName1+"_AR0length;i1++){");

documentwriteln(" var Area1Str = "+_SName1+"_AR0[i1];");

documentwriteln(" var _AR10 = Area1Strsplit(\"{{\");");

documentwriteln(" var _AR12 = _AR10[1]split(\"\");");

documentwriteln(" for (var i2 = 0;i2 < _AR12length;i2++){");

documentwriteln(" var Area2Str = _AR12[i2];");

documentwriteln(" var _AR20 = Area2Strsplit(\"((\");");

documentwriteln(" var _AR211 = _AR20[0]split(\"@\");");

documentwriteln(" var Tstr2 = _AR211[0];");

documentwriteln(" var Vstr2 = (_AR211length==2)_AR211[1]:_AR211[0];");

documentwriteln(" "+_SName1+"group[i1][i2]=new Option(Tstr2,Vstr2);");

documentwriteln(" }");

documentwriteln("}");

documentwriteln("var "+_SName1+"temp = document"+ _FormName +"" + _SName2);

documentwriteln("function "+_SName1+"redirect(x){");

documentwriteln(" for (m="+_SName1+"tempoptionslength-1;m>0;m--)");

documentwriteln(" "+_SName1+"tempoptions[m]=null;");

documentwriteln(" for (i=0;i<"+_SName1+"group[x]length;i++){");

documentwriteln(" "+_SName1+"tempoptions[i]=new Option("+_SName1+"group[x][i]text,"+_SName1+"group[x][i]value);");

documentwriteln(" }");

documentwriteln(" "+_SName1+"tempoptions[0]selected=true");

documentwriteln(" "+_SName1+"redirect1(0)");

documentwriteln("}");

documentwriteln("var "+_SName1+"Group2s=document"+ _FormName +"" + _SName2 + "optionslength;");

documentwriteln("var "+_SName1+"Group2=new Array("+_SName1+"groups);");

documentwriteln("for (i=0; i<"+_SName1+"groups; i++){");

documentwriteln(" "+_SName1+"Group2[i]=new Array("+_SName1+"group[i]length)");

documentwriteln(" for (j=0; j<"+_SName1+"group[i]length; j++){");

documentwriteln(" "+_SName1+"Group2[i][j]=new Array()");

documentwriteln(" }");

documentwriteln("}");

documentwriteln("for (var i1 = 0;i1 < "+_SName1+"_AR0length;i1++){");

documentwriteln(" var Area1Str = "+_SName1+"_AR0[i1]");

documentwriteln(" var _AR10 = Area1Strsplit(\"{{\");");

documentwriteln(" var _AR12 = _AR10[1]split(\"\");");

documentwriteln(" for (var i2 = 0;i2 < _AR12length;i2++){");

documentwriteln(" var Area2Str = _AR12[i2]");

documentwriteln(" var _AR20 = Area2Strsplit(\"((\");");

documentwriteln(" _AR212 = _AR20[1]split(\"^\");");

documentwriteln(" for (var i3 = 0;i3 < _AR212length;i3++){");

documentwriteln(" Area3Str = _AR212[i3]");

documentwriteln(" _AR3 = Area3Strsplit(\"@\");");

documentwriteln(" Tstr3 = _AR3[0]");

documentwriteln(" Vstr3 = (_AR3length==2)_AR3[1]:_AR3[0]");

documentwriteln(" "+_SName1+"Group2[i1][i2][i3]=new Option(Tstr3,Vstr3);");

documentwriteln(" }");

documentwriteln(" }");

documentwriteln("}");

documentwriteln("var "+_SName1+"temp1=document"+ _FormName +"" + _SName3 + "");

documentwriteln("function "+_SName1+"redirect1(y){");

documentwriteln(" for (m="+_SName1+"temp1optionslength-1;m>0;m--)");

documentwriteln(" "+_SName1+"temp1options[m]=null");

documentwriteln(" for (i=0;i<"+_SName1+"Group2[document"+ _FormName +"" + _SName1 + "optionsselectedIndex][y]length;i++){");

documentwriteln(" "+_SName1+"temp1options[i]=new Option("+_SName1+"Group2[document"+ _FormName +"" + _SName1 + "optionsselectedIndex][y][i]text," + _SName1 + "Group2[document"+ _FormName +"" + _SName1 + "optionsselectedIndex][y][i]value)");

documentwriteln(" }");

documentwriteln(" "+_SName1+"temp1options[0]selected=true");

documentwriteln("}");

documentwriteln("\/\/-->");

documentwriteln("<\/script>");

documentwriteln("<s"+"cript language=\"JavaScript\">");

documentwriteln("<!--");

documentwriteln("function "+_SName1+"SetValue(){");

documentwriteln(" try{");

documentwriteln(" if (\""+_SValue1+"\"!=\"\"){");

documentwriteln(" document"+ _FormName +""+_SName1+"value=\""+_SValue1+"\"");

documentwriteln(" "+_SName1+"redirect(document"+ _FormName +""+_SName1+"optionsselectedIndex);");

documentwriteln(" if (\""+_SValue2+"\"!=\"\"){");

documentwriteln(" document"+ _FormName +""+_SName2+"value=\""+_SValue2+"\"");

documentwriteln(" "+_SName1+"redirect1(document"+ _FormName +""+_SName2+"optionsselectedIndex)");

documentwriteln(" if (\""+_SValue3+"\"!=\"\")");

documentwriteln(" document"+ _FormName +""+_SName3+"value=\""+_SValue3+"\"");

documentwriteln(" }");

documentwriteln(" }");

documentwriteln(" }");

documentwriteln(" catch(e){");

documentwriteln(" }");

documentwriteln("}");

documentwriteln("windowattachEvent(\"onload\","+_SName1+"SetValue)");

documentwriteln("\/\/-->");

documentwriteln("<\/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>选择二次<br><SCRIPT LANGUAGE="JavaScript">

CreateSelect("HwForm","S_11|S_21|S_31","笔记本|IBM|T42","请选择分类@|请选择品牌@|请选择系列@",AllStr2,2);

</SCRIPT>

<HR>选择二次<br><SCRIPT LANGUAGE="JavaScript">

CreateSelect("HwForm","S_12|S_22|S_32","","请选择分类@|请选择品牌@|请选择系列@",AllStr2,1);

</SCRIPT>

</FORM>

自己看着改改吧。

不行这里还有一个

http://hibaiducom/lsk0311/blog/item/ab15ca89771007b60e24447bhtml

<SCRIPT LANGUAGE="JavaScript">

<!--

function CreateSelect(_FormName,_SName,_SValue,_Ds,_AllOptionStr,ShowType)

{

//三级关链菜单通用版

//作者:海娃, 有问题请到http://www51windowsNet留言。

if (_FormName=="")

_FormName = "all"

var _DsArr = _Dssplit("|")

var _Ds1,_Ds2,_Ds3

var _Ds1 = _DsArr[0]

var _Ds2 = (_DsArrlength>1)_DsArr[1]:_DsArr[0]

var _Ds3 = (_DsArrlength>2)_DsArr[2]:_DsArr[0]

var _SNameArr = _SNamesplit("|")

var _SName1,_SName2,_SName3

var _SName1 = _SNameArr[0]

var _SName2 = (_SNameArrlength>1)_SNameArr[1]:_SNameArr[0]

var _SName3 = (_SNameArrlength>2)_SNameArr[2]:_SNameArr[0]

var _SValueArr = _SValuesplit("|")

var _SValue1,_SValue2,_SValue3

var _SValue1 = _SValueArr[0]

var _SValue2 = (_SValueArrlength>1)_SValueArr[1]:_SValueArr[0]

var _SValue3 = (_SValueArrlength>2)_SValueArr[2]:_SValueArr[0]

if (ShowType==3){

_AllOptionStr = _AllOptionStrreplace(/\(\(/ig,"\(\("+_Ds3+"\^")

_AllOptionStr = _AllOptionStrreplace(/\{\{/ig,"\{\{"+_Ds2+"\(\("+_Ds3+"\\")

}

else if(ShowType==2){

_AllOptionStr = _AllOptionStrreplace(/\{\{/ig,"\{\{"+_Ds2+"\(\("+_Ds3+"\\")

}

else if(ShowType==1){

_AllOptionStr = _AllOptionStrreplace(/\(\(/ig,"\(\("+_Ds3+"\^")

}

var AllStr = _Ds1 + "{{"+ _Ds2 + "(("+ _Ds3 +"||"+_AllOptionStr

//alert(AllStr)

var _AR0 = AllStrsplit("||");

documentwriteln("<select name=\"" + _SName1 + "\" size=\"1\" onChange=\""+_SName1+"redirect(thisoptionsselectedIndex)\">");

for (var i1 = 0;i1 < _AR0length;i1++)

{

var Area1Str = _AR0[i1];

var _AR10 = Area1Strsplit("{{");

var _AR11 = _AR10[0]split("@");

var Tstr1 = _AR11[0];

var Vstr1 = (_AR11length==2)_AR11[1]:_AR11[0]

documentwriteln("<option value=\""+Vstr1+"\">"+Tstr1+"<\/option>");

}

documentwriteln("<\/select>");

documentwriteln("<select name=\"" + _SName2 + "\" size=\"1\" onChange=\""+_SName1+"redirect1(thisoptionsselectedIndex)\">");

var _AR111 = _Ds2split("@");

var Tstr11 = _AR111[0];

var Vstr11 = (_AR111length==2)_AR111[1]:_AR111[0];

documentwriteln("<option value=\""+Vstr11+"\">"+Tstr11+"<\/option>");

documentwriteln("<\/select>");

documentwriteln("<select name=\"" + _SName3 + "\" size=\"1\">");

var _AR222 = _Ds3split("@");

var Tstr22 = _AR222[0];

var Vstr22 = (_AR222length==2)_AR222[1]:_AR222[0];

documentwriteln("<option value=\""+Vstr22+"\">"+Tstr22+"<\/option>");

documentwriteln("<\/select>");

documentwriteln("<S"+"CRIPT LANGUAGE=\"JavaScript\" defer>");

documentwriteln("<!--");

documentwriteln("var "+_SName1+"NewAllStr = \""+ AllStr +"\"");

documentwriteln("var "+_SName1+"_AR0 = "+_SName1+"NewAllStrsplit(\"||\");");

documentwriteln("var "+_SName1+"groups=document"+ _FormName +"" + _SName1 + "optionslength;");

documentwriteln("var "+_SName1+"group=new Array("+_SName1+"groups)");

documentwriteln("for (i=0; i<"+_SName1+"groups; i++){");

documentwriteln(" "+_SName1+"group[i]=new Array();");

documentwriteln("}");

documentwriteln("for (var i1 = 0;i1 < "+_SName1+"_AR0length;i1++){");

documentwriteln(" var Area1Str = "+_SName1+"_AR0[i1];");

documentwriteln(" var _AR10 = Area1Strsplit(\"{{\");");

documentwriteln(" var _AR12 = _AR10[1]split(\"\");");

documentwriteln(" for (var i2 = 0;i2 < _AR12length;i2++){");

documentwriteln(" var Area2Str = _AR12[i2];");

documentwriteln(" var _AR20 = Area2Strsplit(\"((\");");

documentwriteln(" var _AR211 = _AR20[0]split(\"@\");");

documentwriteln(" var Tstr2 = _AR211[0];");

documentwriteln(" var Vstr2 = (_AR211length==2)_AR211[1]:_AR211[0];");

documentwriteln(" "+_SName1+"group[i1][i2]=new Option(Tstr2,Vstr2);");

documentwriteln(" }");

documentwriteln("}");

documentwriteln("var "+_SName1+"temp = document"+ _FormName +"" + _SName2);

documentwriteln("function "+_SName1+"redirect(x){");

documentwriteln(" for (m="+_SName1+"tempoptionslength-1;m>0;m--)");

documentwriteln(" "+_SName1+"tempoptions[m]=null;");

documentwriteln(" for (i=0;i<"+_SName1+"group[x]length;i++){");

documentwriteln(" "+_SName1+"tempoptions[i]=new Option("+_SName1+"group[x][i]text,"+_SName1+"group[x][i]value);");

documentwriteln(" }");

documentwriteln(" "+_SName1+"tempoptions[0]selected=true");

documentwriteln(" "+_SName1+"redirect1(0)");

documentwriteln("}");

documentwriteln("var "+_SName1+"Group2s=document"+ _FormName +"" + _SName2 + "optionslength;");

documentwriteln("var "+_SName1+"Group2=new Array("+_SName1+"groups);");

documentwriteln("for (i=0; i<"+_SName1+"groups; i++){");

documentwriteln(" "+_SName1+"Group2[i]=new Array("+_SName1+"group[i]length)");

documentwriteln(" for (j=0; j<"+_SName1+"group[i]length; j++){");

documentwriteln(" "+_SName1+"Group2[i][j]=new Array()");

documentwriteln(" }");

documentwriteln("}");

documentwriteln("for (var i1 = 0;i1 < "+_SName1+"_AR0length;i1++){");

documentwriteln(" var Area1Str = "+_SName1+"_AR0[i1]");

documentwriteln(" var _AR10 = Area1Strsplit(\"{{\");");

documentwriteln(" var _AR12 = _AR10[1]split(\"\");");

documentwriteln(" for (var i2 = 0;i2 < _AR12length;i2++){");

documentwriteln(" var Area2Str = _AR12[i2]");

documentwriteln(" var _AR20 = Area2Strsplit(\"((\");");

documentwriteln(" _AR212 = _AR20[1]split(\"^\");");

documentwriteln(" for (var i3 = 0;i3 < _AR212length;i3++){");

documentwriteln(" Area3Str = _AR212[i3]");

documentwriteln(" _AR3 = Area3Strsplit(\"@\");");

documentwriteln(" Tstr3 = _AR3[0]");

documentwriteln(" Vstr3 = (_AR3length==2)_AR3[1]:_AR3[0]");

documentwriteln(" "+_SName1+"Group2[i1][i2][i3]=new Option(Tstr3,Vstr3);");

documentwriteln(" }");

documentwriteln(" }");

documentwriteln("}");

documentwriteln("var "+_SName1+"temp1=document"+ _FormName +"" + _SName3 + "");

documentwriteln("function "+_SName1+"redirect1(y){");

documentwriteln(" for (m="+_SName1+"temp1optionslength-1;m>0;m--)");

documentwriteln(" "+_SName1+"temp1options[m]=null");

documentwriteln(" for (i=0;i<"+_SName1+"Group2[document"+ _FormName +"" + _SName1 + "optionsselectedIndex][y]length;i++){");

documentwriteln(" "+_SName1+"temp1options[i]=new Option("+_SName1+"Group2[document"+ _FormName +"" + _SName1 + "optionsselectedIndex][y][i]text," + _SName1 + "Group2[document"+ _FormName +"" + _SName1 + "optionsselectedIndex][y][i]value)");

documentwriteln(" }");

documentwriteln(" "+_SName1+"temp1options[0]selected=true");

documentwriteln("}");

documentwriteln("\/\/-->");

documentwriteln("<\/script>");

documentwriteln("<s"+"cript language=\"JavaScript\">");

documentwriteln("<!--");

documentwriteln("function "+_SName1+"SetValue(){");

documentwriteln(" try{");

documentwriteln(" if (\""+_SValue1+"\"!=\"\"){");

documentwriteln(" document"+ _FormName +""+_SName1+"value=\""+_SValue1+"\"");

documentwriteln(" "+_SName1+"redirect(document"+ _FormName +""+_SName1+"optionsselectedIndex);");

documentwriteln(" if (\""+_SValue2+"\"!=\"\"){");

documentwriteln(" document"+ _FormName +""+_SName2+"value=\""+_SValue2+"\"");

documentwriteln(" "+_SName1+"redirect1(document"+ _FormName +""+_SName2+"optionsselectedIndex)");

documentwriteln(" if (\""+_SValue3+"\"!=\"\")");

documentwriteln(" document"+ _FormName +""+_SName3+"value=\""+_SValue3+"\"");

documentwriteln(" }");

documentwriteln(" }");

documentwriteln(" }");

documentwriteln(" catch(e){");

documentwriteln(" }");

documentwriteln("}");

documentwriteln("windowattachEvent(\"onload\","+_SName1+"SetValue)");

documentwriteln("\/\/-->");

documentwriteln("<\/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>选择二次<br><SCRIPT LANGUAGE="JavaScript">

CreateSelect("HwForm","S_11|S_21|S_31","笔记本|IBM|T42","请选择分类@|请选择品牌@|请选择系列@",AllStr2,2);

</SCRIPT>

<HR>选择二次<br><SCRIPT LANGUAGE="JavaScript">

CreateSelect("HwForm","S_12|S_22|S_32","","请选择分类@|请选择品牌@|请选择系列@",AllStr2,1);

</SCRIPT>

</FORM>

参考资料:

三级下拉菜单 (通用版):http://www51windowsnet/data/files/file_526asp

到手机店里就有啊,要不就到小天才专卖店购买,要想省钱的话就到淘宝或者是苏宁易购上面买,但是有假货的,要小心购买,特别是淘宝里的,假货太多,售后方面不太方便的,有毛病的话来回退换货费劲,劳民伤财,

if (_FormName=="")

_FormName = "all"

var _DsArr = _Dssplit("|")

var _Ds1,_Ds2,_Ds3

var _Ds1 = _DsArr[0]

var _Ds2 = (_DsArrlength>1)_DsArr[1]:_DsArr[0]

var _Ds3 = (_DsArrlength>2)_DsArr[2]:_DsArr[0]

var _SNameArr = _SNamesplit("|")

var _SName1,_SName2,_SName3

var _SName1 = _SNameArr[0]

var _SName2 = (_SNameArrlength>1)_SNameArr[1]:_SNameArr[0]

var _SName3 = (_SNameArrlength>2)_SNameArr[2]:_SNameArr[0]

var _SValueArr = _SValuesplit("|")

var _SValue1,_SValue2,_SValue3

var _SValue1 = _SValueArr[0]

var _SValue2 = (_SValueArrlength>1)_SValueArr[1]:_SValueArr[0]

var _SValue3 = (_SValueArrlength>2)_SValueArr[2]:_SValueArr[0]

if (ShowType==3){

_AllOptionStr = _AllOptionStrreplace(/\(\(/ig,"\(\("+_Ds3+"\^")

_AllOptionStr = _AllOptionStrreplace(/\{\{/ig,"\{\{"+_Ds2+"\(\("+_Ds3+"\\")

}

else if(ShowType==2){

_AllOptionStr = _AllOptionStrreplace(/\{\{/ig,"\{\{"+_Ds2+"\(\("+_Ds3+"\\")

}

else if(ShowType==1){

_AllOptionStr = _AllOptionStrreplace(/\(\(/ig,"\(\("+_Ds3+"\^")

}

var AllStr = _Ds1 + "{{"+ _Ds2 + "(("+ _Ds3 +"||"+_AllOptionStr

//alert(AllStr)

var _AR0 = AllStrsplit("||");

documentwriteln("<select name=\"" + _SName1 + "\" size=\"1\" onChange=\""+_SName1+"redirect(thisoptionsselectedIndex)\">");

for (var i1 = 0;i1 < _AR0length;i1++)

{

var Area1Str = _AR0[i1];

var _AR10 = Area1Strsplit("{{");

var _AR11 = _AR10[0]split("@");

var Tstr1 = _AR11[0];

var Vstr1 = (_AR11length==2)_AR11[1]:_AR11[0]

documentwriteln("<option value=\""+Vstr1+"\">"+Tstr1+"<\/option>");

}

documentwriteln("<\/select>");

documentwriteln("<select name=\"" + _SName2 + "\" size=\"1\" onChange=\""+_SName1+"redirect1(thisoptionsselectedIndex)\">");

var _AR111 = _Ds2split("@");

var Tstr11 = _AR111[0];

var Vstr11 = (_AR111length==2)_AR111[1]:_AR111[0];

documentwriteln("<option value=\""+Vstr11+"\">"+Tstr11+"<\/option>");

documentwriteln("<\/select>");

documentwriteln("<select name=\"" + _SName3 + "\" size=\"1\">");

var _AR222 = _Ds3split("@");

var Tstr22 = _AR222[0];

var Vstr22 = (_AR222length==2)_AR222[1]:_AR222[0];

documentwriteln("<option value=\""+Vstr22+"\">"+Tstr22+"<\/option>");

documentwriteln("<\/select>");

documentwriteln("<S"+"CRIPT LANGUAGE=\"JavaScript\" defer>");

documentwriteln("<!--");

documentwriteln("var "+_SName1+"NewAllStr = \""+ AllStr +"\"");

documentwriteln("var "+_SName1+"_AR0 = "+_SName1+"NewAllStrsplit(\"||\");");

documentwriteln("var "+_SName1+"groups=document"+ _FormName +"" + _SName1 + "optionslength;");

documentwriteln("var "+_SName1+"group=new Array("+_SName1+"groups)");

documentwriteln("for (i=0; i<"+_SName1+"groups; i++){");

documentwriteln(" "+_SName1+"group[i]=new Array();");

documentwriteln("}");

documentwriteln("for (var i1 = 0;i1 < "+_SName1+"_AR0length;i1++){");

documentwriteln(" var Area1Str = "+_SName1+"_AR0[i1];");

documentwriteln(" var _AR10 = Area1Strsplit(\"{{\");");

documentwriteln(" var _AR12 = _AR10[1]split(\"\");");

documentwriteln(" for (var i2 = 0;i2 < _AR12length;i2++){");

documentwriteln(" var Area2Str = _AR12[i2];");

documentwriteln(" var _AR20 = Area2Strsplit(\"((\");");

documentwriteln(" var _AR211 = _AR20[0]split(\"@\");");

documentwriteln(" var Tstr2 = _AR211[0];");

documentwriteln(" var Vstr2 = (_AR211length==2)_AR211[1]:_AR211[0];");

documentwriteln(" "+_SName1+"group[i1][i2]=new Option(Tstr2,Vstr2);");

documentwriteln(" }");

documentwriteln("}");

documentwriteln("var "+_SName1+"temp = document"+ _FormName +"" + _SName2);

documentwriteln("function "+_SName1+"redirect(x){");

documentwriteln(" for (m="+_SName1+"tempoptionslength-1;m>0;m--)");

documentwriteln(" "+_SName1+"tempoptions[m]=null;");

documentwriteln(" for (i=0;i<"+_SName1+"group[x]length;i++){");

documentwriteln(" "+_SName1+"tempoptions[i]=new Option("+_SName1+"group[x][i]text,"+_SName1+"group[x][i]value);");

documentwriteln(" }");

documentwriteln(" "+_SName1+"tempoptions[0]selected=true");

documentwriteln(" "+_SName1+"redirect1(0)");

documentwriteln("}");

documentwriteln("var "+_SName1+"Group2s=document"+ _FormName +"" + _SName2 + "optionslength;");

documentwriteln("var "+_SName1+"Group2=new Array("+_SName1+"groups);");

documentwriteln("for (i=0; i<"+_SName1+"groups; i++){");

documentwriteln(" "+_SName1+"Group2[i]=new Array("+_SName1+"group[i]length)");

documentwriteln(" for (j=0; j<"+_SName1+"group[i]length; j++){");

documentwriteln(" "+_SName1+"Group2[i][j]=new Array()");

documentwriteln(" }");

documentwriteln("}");

documentwriteln("for (var i1 = 0;i1 < "+_SName1+"_AR0length;i1++){");

documentwriteln(" var Area1Str = "+_SName1+"_AR0[i1]");

documentwriteln(" var _AR10 = Area1Strsplit(\"{{\");");

documentwriteln(" var _AR12 = _AR10[1]split(\"\");");

documentwriteln(" for (var i2 = 0;i2 < _AR12length;i2++){");

documentwriteln(" var Area2Str = _AR12[i2]");

documentwriteln(" var _AR20 = Area2Strsplit(\"((\");");

documentwriteln(" _AR212 = _AR20[1]split(\"^\");");

documentwriteln(" for (var i3 = 0;i3 < _AR212length;i3++){");

documentwriteln(" Area3Str = _AR212[i3]");

documentwriteln(" _AR3 = Area3Strsplit(\"@\");");

documentwriteln(" Tstr3 = _AR3[0]");

documentwriteln(" Vstr3 = (_AR3length==2)_AR3[1]:_AR3[0]");

documentwriteln(" "+_SName1+"Group2[i1][i2][i3]=new Option(Tstr3,Vstr3);");

documentwriteln(" }");

documentwriteln(" }");

documentwriteln("}");

documentwriteln("var "+_SName1+"temp1=document"+ _FormName +"" + _SName3 + "");

documentwriteln("function "+_SName1+"redirect1(y){");

documentwriteln(" for (m="+_SName1+"temp1optionslength-1;m>0;m--)");

documentwriteln(" "+_SName1+"temp1options[m]=null");

documentwriteln(" for (i=0;i<"+_SName1+"Group2[document"+ _FormName +"" + _SName1 + "optionsselectedIndex][y]length;i++){");

documentwriteln(" "+_SName1+"temp1options[i]=new Option("+_SName1+"Group2[document"+ _FormName +"" + _SName1 + "optionsselectedIndex][y][i]text," + _SName1 + "Group2[document"+ _FormName +"" + _SName1 + "optionsselectedIndex][y][i]value)");

documentwriteln(" }");

documentwriteln(" "+_SName1+"temp1options[0]selected=true");

documentwriteln("}");

documentwriteln("\/\/-->");

documentwriteln("<\/script>");

documentwriteln("<s"+"cript language=\"JavaScript\">");

documentwriteln("<!--");

documentwriteln("function "+_SName1+"SetValue(){");

documentwriteln(" try{");

documentwriteln(" if (\""+_SValue1+"\"!=\"\"){");

documentwriteln(" document"+ _FormName +""+_SName1+"value=\""+_SValue1+"\"");

documentwriteln(" "+_SName1+"redirect(document"+ _FormName +""+_SName1+"optionsselectedIndex);");

documentwriteln(" if (\""+_SValue2+"\"!=\"\"){");

documentwriteln(" document"+ _FormName +""+_SName2+"value=\""+_SValue2+"\"");

documentwriteln(" "+_SName1+"redirect1(document"+ _FormName +""+_SName2+"optionsselectedIndex)");

documentwriteln(" if (\""+_SValue3+"\"!=\"\")");

documentwriteln(" document"+ _FormName +""+_SName3+"value=\""+_SValue3+"\"");

documentwriteln(" }");

documentwriteln(" }");

documentwriteln(" }");

documentwriteln(" catch(e){");

documentwriteln(" }");

documentwriteln("}");

documentwriteln("windowattachEvent(\"onload\","+_SName1+"SetValue)");

documentwriteln("\/\/-->");

documentwriteln("<\/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>选择二次<br><SCRIPT LANGUAGE="JavaScript">

CreateSelect("HwForm","S_11|S_21|S_31","笔记本|IBM|T42","请选择分类@|请选择品牌@|请选择系列@",AllStr2,2);

</SCRIPT>

<HR>选择二次<br><SCRIPT LANGUAGE="JavaScript">

CreateSelect("HwForm","S_12|S_22|S_32","","请选择分类@|请选择品牌@|请选择系列@",AllStr2,1);

</SCRIPT>

</FORM>

欢迎分享,转载请注明来源:品搜搜测评网

原文地址:https://pinsoso.cn/meirong/1108658.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-08-30
下一篇2023-08-30

随机推荐

  • 白松露眼霜什么功效

    我来告诉你白松露眼霜的功效啦~首先,白松露作为一种稀有及昂贵的食材,其精华能够深入肌肤,提供持久的滋润保湿效果,不仅可以令肌肤变得柔嫩细腻,还能够淡化细纹,提升肌肤弹性,使肌肤显得更加年轻动人。而眼周皮肤最细最娇嫩,其肌肤也很容易出现干燥,

    2024-04-15
    1064100
  • 夏季宝宝防蚊用什么好啊?

     一般用喷雾剂、蚊香、防蚊液,但这些产品的成分都是化学品,在燃烧时也会形成烟雾微粒,很容易造成咳嗽、胸闷反应,甚至诱发哮喘。不适合婴幼儿使用。相对这几种来说,防蚊液对人体的伤害最小。  土方法方便又实用  用八角、茴香洗澡:去厨房的调味罐里

    2024-04-15
    32600
  • 适合女人的护手霜

    推荐以下几款护手霜1、凡士林烟酰胺美白护手霜滋润保湿修护润手霜套装男女通用2、妮维雅男女士深层滋润护手霜保湿补水舒缓湿防裂手膜3、美加净护手霜美白保湿嫩白秋冬季防干裂手油滋润补水女4、瑰珀翠CE护手霜女按压式大瓶新园艺大师滋润保湿嫩白秋冬不

    2024-04-15
    51900
  • 精华素哪个牌子好用?

    肌肤经常出现干纹和细纹,是肌肤缺少水分导致的,而且肌肤在长期干燥的状态下也是会加速衰老的,因此,我们要及时给肌肤补充水分。一些保湿型的精华素能帮助缓解肌肤干燥,那么,精华素哪个牌子好用?哪个牌子精华素好用呢?1、好用的精华素推荐产品:巴黎欧

    2024-04-15
    52900
  • 精华水和精华乳先用哪个

    先使用精华水再使用乳液。精华水和乳液都具有为皮肤保湿补水的功能,但是使用的顺序有所不同。在使用精华液后涂抹乳液,可以帮助肌肤更好的吸收营养成分,之后的护肤保养步骤也会更加顺畅。精华水当中含有保湿剂以及其他营养物质,它的质地比乳液更加的轻薄,

    2024-04-15
    44800
  • 男士护肤品哪个好用?有推荐的牌子吗

    男士护肤品牌很多啊,但跟女士护肤品相比,一般男士都比较喜欢简便操作,所以主推洁面,爽肤水和乳液套装,少数搭配精华和面霜。推荐一:高夫高夫是老品牌了,为中国男士肌肤定制的品牌,护肤品系列很多,针对不同的肌肤问题对号入座即可。个人也是比较喜欢这

    2024-04-15
    44200
  • 清莹露和神仙水怎么用

    清莹露是属于清洁水,就是洗完脸,第一个用的,是给皮肤一个再次清洁的作用。神仙水是护肤精华露,也是用的人最多,用的顺序的话,在清莹露后面。清莹露是去角质的,洗完脸倒在化妆棉上擦拭,二次清洁。神仙水是叫青春露。清莹露二次清洁去角质,目前SKII

    2024-04-15
    37500

发表评论

登录后才能评论
保存