Português
Um menu de ligação tripolar comum frequentemente usado em páginas da web para exibir efeitos especiais de páginas da web.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http ://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>Downcodes de ligação de três níveis. com </title> </head> <body> <SCRIPT LANGUAGE="JavaScript"> <!-- function CreateSelect(_FormName,_SName,_SValue,_Ds,_AllOptionStr,ShowType) { //Versão geral do menu de link de três níveis if ( _FormName=="") _FormName = "todos" var _DsArr = _Ds.split("|") var _Ds1,_Ds2,_Ds3 var _Ds1 = _DsArr[0] var _Ds2 = (_DsArr.length>1)?_DsArr[ 1] :_DsArr[0] var _Ds3 = (_DsArr.length>2)?_DsArr[2]:_DsArr[0] var _SNameArr = _SName.split("|") var _SName1,_SName2,_SName3 var _SName1 = _SNameArr[0 ] var _SName2 = (_SNameArr.length>1)?_SNameArr[1]:_SNameArr[0] var _SName3 = (_SNameArr.length>2)?_SNameArr[2]:_SNameArr[0] var _SValueArr = _SValue.split("| ") var _SValue1,_SValue2,_SValue3 var _SValue1 = _SValueArr[0] var _SValue2 = (_SValueArr.length>1)?_SValueArr[1]:_SValueArr[0] var _SValue3 = (_SValueArr.length>2)?_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("<selecionar nome="" + _SName1 + "" tamanho="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("<valor da opção=""+Vstr1+" "> "+Tstr1+"</option>"); } document.writeln("</select>"); document.writeln("<selecionar nome="" + _SName2 + "" tamanho=" 1 " onChange=""+_SName1+"redirect1(this.options.selectedIndex)">"); .length ==2)?_AR111[1]:_AR111[0]; document.writeln("<valor da opção=""+Vstr11+"">"+Tstr11+"</option>"); (" </select>"); document.writeln("<selecionar nome="" + _SName3 + "" tamanho="1">"); ; var Tstr22 = _AR222[0]; var Vstr22 = (_AR222.length==2)?_AR222[1]:_AR222[0]; +Tstr22+ "</option>"); document.writeln("</select>"); 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+"grupos)"); document.writeln("para (i=0; i<"+_SName1+"grupos; i++){"); "grupo [i]=new Array();"); document.writeln("}"); document.writeln("for (var i1 = 0;i1 < "+_SName1+"_AR0.length;i1++){") ; documento .writeln(" var Area1Str = "+_SName1+"_AR0[i1];"); document.writeln(" var _AR10 = Area1Str.split("{{");"); _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 = documento."+ _FormName +"." + _SName2("função "+_SName1+"redirect(x){"); m= "+_SName1+"temp.options.length-1;m>0;m--)"); document.writeln(" "+_SName1+"temp.options[m]=null;"); document.writeln( " for (i=0;i<"+_SName1+"grupo[x].length;i++){"); document.writeln(" "+_SName1+"temp.options[i]=new Option("+_SName1+"grupo [x ][i].text,"+_SName1+"grupo[x][i].value);"); document.writeln(" }"); document.writeln(" "+_SName1+"temp.options[0 ]. selecionado=true"); document.writeln(" "+_SName1+"redirect1(0)"); document.writeln("}"); document.writeln("var "+_SName1+"Group2s=document."+ _FormName +" ." + _SName2 + ".options.length;"); document.writeln("var "+_SName1+"Grupo2=new Array("+_SName1+"grupos);"); 0; i<"+_SName1+"grupos; i++){"); document.writeln(" "+_SName1+"Grupo2[i]=new Array("+_SName1+"grupo[i].length)"); document.writeln (" for (j=0; j<"+_SName1+"group[i].length; j++){"); document.writeln(" "+_SName1+"Grupo2[i][j]=new Array()") ;documento .writeln(" }"); document.writeln("}"); document.writeln("for (var i1 = 0;i1 < "+_SName1+"_AR0.length;i1++){"); (" var Area1Str = "+_SName1+"_AR0[i1]"); document.writeln(" var _AR10 = Area1Str.split("{{");"); ]. 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("^");") ;documento .writeln("for (var i3 = 0;i3 < _AR212.length;i3++){"); document.writeln(" Area3Str = _AR212[i3]"); " @");"); document.writeln(" Tstr3 = _AR3[0]"); document.writeln(" Vstr3 = (_AR3.length==2)?_AR3[1]:_AR3[0]" ); document.writeln(" "+_SName1+"Grupo2[i1][i2][i3]=new Option(Tstr3,Vstr3);"); document.writeln(" }"); ; documento .writeln("}"); document.writeln("var "+_SName1+"temp1=document."+ _FormName +"." + _SName3 + ""); y) {"); document.writeln(" for (m="+_SName1+"temp1.options.length-1;m>0;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+"Grupo2[documento."+ _FormName +"." + _SName1 + ".options.selectedIndex] [y ][i].text," + _SName1 + "Grupo2[documento."+ _FormName +"." + _SName1 + ".options.selectedIndex][y][i].value)"); document.writeln( " } "); document.writeln(" "+_SName1+"temp1.options[0].selected=true"); document.writeln("}"); ; documento .writeln("</script>"); document.writeln("<linguagem de script="JavaScript">"); "+ _SName1+"SetValue(){"); document.writeln(" try{"); document.writeln(" if (""+_SValue1+""!=""){"); document.writeln ("document."+ _FormName +"."+_SName1+".value=""+_SValue1+"""); document.writeln(" "+_SName1+"redirect(document."+ _FormName +"."+_SName1+ ".opções.selectedIndex);"); document.writeln(" if (""+_SValue2+""!=""){"); +_SName2+ ".value=""+_SValue2+"""); document.writeln(" "+_SName1+"redirect1(document."+ _FormName +"."+_SName2+".options.selectedIndex)"); writeln( " if (""+_SValue3+""!="")"); document.writeln("document."+ _FormName +"."+_SName3+".value=""+_SValue3+" "" ); document.writeln(" }"); document.writeln(" }"); document.writeln(" }"); "); document.writeln("}"); document.writeln("window.attachEvent("onload","+_SName1+"SetValue)"); document.writeln("//-->") ; document .writeln("</script>"); //--> </script> <SCRIPT LANGUAGE="JavaScript"> <!-- var AllStr1 = "" +"Região Nordeste{{" +" Heilongjiang((Harbin^Qiqihar^Mudanjiang^Jiamusi^Daqing^Suihua^Hegang^Jixi^Heihe^Shuangyashan^Yichun^Qitaihe^Daxinganling" +"**Jilin((Changchun^Jilin^Siping^Liaoyuan^Tonghua^Baishan^ Songyuan^ Baicheng^Yanbian" +"**Liaoning((Shenyang^Dalian^Anshan^Fushun^Benxi^Dandong^Jinzhou^Yingkou^Fuxin^Liaoyang^Panjin^Tieling^Chaoyang^Huludao" +"||Norte da China {{ " +" Pequim((Dongcheng^Xicheng^Chongwen^Xuanwu^Chaoyang^Fengtai^Shijingshan^Haidian^Mentougou^Fangshan^Tongzhou^Shunyi^Changping^Daxing^Pinggu^Huairou^Miyun^Yanqing" +"**Tianjin((Heping ^Dongli^ Hedong^Xiqing^Hexi^Jinnan^Nankai^Beichen^Hebei^Wuqing^Hongjie^Tanggu^Hangu^Dagang^Ninghe^Jinghai^Baodi^Jixian" +"**Shandong((Jinan^Qingdao ^Zibo^Zaozhuang^Dongying^Yantai ^Weifang^Jining^Taian^Weihai^Rizhao^Laiwu^Linyi^Dezhou^Liaocheng^Binzhou^Heze" +"**Hebei ((Shijiazhuang^Handan^Xingtai^Baoding^Zhangjiakou^Chengde^ Langfang^Tangshan^Qinhuangdao^Cangzhou^ Hengshui" +"**Henan((Zhengzhou^Kaifeng^Luoyang^Pingdingshan^Anyang^Hebi^Xinxiang^Jiaozuo^Puyang^Xuchang^Luohe^Sanmenxia^Nanyang^Shangqiu^Xinyang^Zhoukou^Zhumadian ^Jiyuan" +"**Shanxi ((Taiyuan ^ Datong ^ Yangquan ^ Changzhi ^ Jincheng ^ Shuozhou ^ Lüliang ^ Xinzhou ^ Jinzhong ^ Linfen ^ Yuncheng "+" ** Mongólia Interior ((Hohhot ^ Baotou ^ Wuhai ^ Chifeng ^ Liga Hulunbuir ^ Liga Alxa ^ Liga Jerimu ^ Xing 'uma Liga^Liga Ulanqab^Liga Xilingol^Liga Bayannur^Liga Yikezhao" +"||China Central{{" +"Hubei((Wuhan^Yichang ^Jingzhou^Xiangfan^Huangshi^Jingmen^Huanggang^Shiyan^Enshi^Qianjiang^ Tianmen^Xiantao^Suizhou^Xianning^Xiaogan^Ezhou" +"**Hunan((Changsha^Changde^Zhuzhou^Xiangtan^Hengyang^Yueyang^Shaoyang ^Yiyang^Loudi^Huaihua^Chenzhou^Yongzhou^Xiangxi^Zhangjiajie" +"| |Sul da China {{" +"Guangdong((Guangzhou^Shenzhen^Zhuhai^Shantou^Dongguan^Zhongshan^Foshan^Shaoguan^Jiangmen^Zhanjiang^Maoming ^Zhaoqing^Huizhou^Meizhou^Shanwei^Heyuan^Yangjiang^Qingyuan^Chaozhou^Jieyang ^Yunfu" +"**Guangxi((Nanning^Liuzhou^Guilin^Wuzhou^Beihai^Fangchenggang^Qinzhou^Guigang^Yulin^Região de Nanning^Região de Liuzhou^Hezhou^Baise^Hechi" +"**Fujian((Fuzhou^Xiamen ^Putian^Sanming^Quanzhou^Zhangzhou^Nanping^Longyan^Ningde" +"**Hainan((Haikou^Sanya" +"||Região Sudoeste {{" +"Sichuan((Chengdu^Mianyang^Deyang^Zigong^Panzhihua^ Guangyuan^Neijiang^Leshan^Nanchong^Yibin^Guang'an^Dachuan^Ya'an^Meishan^Ganzi^Liangshan^Luzhou" +"**Chongqing(( Wanzhou^ Fuling^ Yuzhong^ Dadukou^ Jiangbei^ Shapingba^ Jiulongpo^ Sul Banco^ Beibei^ Wansheng^ Shuangjiao^ Yubei^ Banan^ Qianjiang^ Changshou^ Qijiang^ Tongnan^ Tongliang^ Dazu^ Rongchang^ Bishan ^Liangping^Chengkou^Fengdu^Dianjiang^Wulong^Zhongxian^Kaixian^Yunyang^Fengjie^Wushan^Wuxi^ Shizhu^Xiushan^Youyang^Pengshui^Jiangjin^Hechuan^Yongchuan^Nanchuan" +" **Guizhou((Guiyang^Liupanshui^Zunyi^Anshun^Tongren^Qianxinan^Bijie^Qiandongnan^Qiannan" +"**Yunnan((Kunming^ Dali^Qujing^Yuxi^Zhaotong^Chuxiong^Honghe^Wenshan^Simao ^Xishuangbanna^Baoshan^Dehong^Lijiang^Nujiang^Diqing^Lincang" +"**Tibete((Lhasa^Shigatse^Shannan^Lingzhi^Chamdo^Agari^Nagqu " +"||Região Noroeste{{" +" Shaanxi ((Xi'an^ Baoji^ Xianyang^ Tongchuan^ Weinan^ Yan'an^ Yulin^ Hanzhong^ Ankang^ Shangluo" +"** Gansu ((Lanzhou^ Jiayuguan^ Jinchang^ Baiyin^ Tianshui^ Jiuquan^ Zhangye^ Wuwei^ Dingxi^ Longnan^ Pingliang^Qingyang^Linxia^Gannan" +"**Ningxia((Yinchuan^Shizuishan^Wuzhong^Guyuan" +"**Qinghai((Xining^Haidong^ Hainan^Haibei^Huangnan^Yushu^Guoluo^Haixi " +"**Xinjiang((Urumqi^Shihezi^Karamay^Ili^Bayingol^Changji^Kizilsu Kirgiz^Bortala^Turpan^Hami^Kashgar^Hotian^Aksu" +"|| Região Leste da China {{" +"Xangai((Huangpu^Luwan^Xuhui^Changning^Jing'an^Putuo^Zhabei^Hongkou^Yangpu^Minhang^Baoshan^Jiading^Pudong^Jinshan^Songjiang^Qingpu^Nanhui^Fengxian^Chongming " +"** Jiangsu((Nanjing^Zhenjiang^Suzhou^Nantong^Yangzhou^Yancheng^Xuzhou^Lianyungang^Changzhou^Wuxi^Suqian^Taizhou^Huaian" +"**Zhejiang((Hangzhou^Ningbo^Wenzhou^Jiaxing^Huzhou ^Shaoxing^Jinhua^ Quzhou^Zhoushan^Taizhou^Lishui" +"**Anhui((Hefei^Wuhu^Bengbu^Ma'anshan^Huaibei^Tongling^Anqing^Huangshan^Chuzhou^Suzhou^Chizhou^Huainan^Chaohu^Fuyang^ Liu'an^Xuancheng^Bozhou " +"**Jiangxi((Cidade de Nanchang^Jingdezhen^Jiujiang^Yingtan^Pingxiang^Xinyu^Ganzhou^Jian^Yichun^Fuzhou^Shangrao" +"||Hong Kong, Macau e Taiwan {{ " +"Hong Kong((Hong Kong" + "**Macau((Macau" +"**Taiwan((Taipei^Kaohsiung^Taichung^Tainan^Pingtung^Nantou^Yunlin^Hsinchu^Changhua^Miaoli^Chiayi^Hualien^ Taoyuan^Yilan^Keelung^Taitung^ Kinmen^Mazu^Penghu" +"||Outras áreas{{" +"Outros((Outros" //--> </SCRIPT> <FORM name="HwForm"> <SCRIPT LANGUAGE ="JavaScript"> CreateSelect(" HwForm","S_1|S_2|S_3","","Por favor selecione uma região@|Por favor selecione uma província@|Por favor selecione uma cidade@",AllStr1,3); > </FORM> </body> </ html>