日期:2014-05-16  浏览次数:20492 次

Js二级菜单连动效果,选省挑市
<form name="companyForm" action="" method="post">
                                所属省份:
                                <select id="shengid" name="shengid" class="input01" onChange="changelocation(document.companyForm.shengid.options[document.companyForm.shengid.selectedIndex].value)" >
             <option selected="selected" value="0">请选择省份</option>
         
            <option  value="2">北京市</option>
         
            <option  value="1">安徽省</option>
         
            <option  value="3">山东省</option>
         
            <option  value="4">江苏省</option>
         
            <option  selected  value="5">上海市</option>
         
            <option  value="6">广东省</option>
         
            <option  value="7">浙江省</option>
         
            <option  value="8">福建省</option>
         
            <option  value="9">重庆市</option>
         
            <option  value="10">甘肃省</option>
         
            <option  value="11">广西</option>
         
            <option  value="12">贵州省</option>
         
            <option  value="13">海南省</option>
         
            <option  value="14">河北省</option>
         
            <option  value="15">河南省</option>
         
            <option  value="16">黑龙江省</option>
         
            <option  value="17">湖北省</option>
         
            <option  value="18">湖南省</option>
         
            <option  value="19">江西省</option>
         
            <option  value="20">吉林省</option>
         
            <option  value="21">辽宁省</option>
         
            <option  value="22">内蒙古</option>
         
            <option  value="23">宁夏</option>
         
            <option  value="24">青海省</option>
         
            <option  value="25">山西省</option>
         
            <option  value="26">陕西省</option>
         
            <option  value="27">四川省</option>
         
            <option  value="28">天津市</option>
         
            <option  value="29">新疆</option>
         
            <option  value="30">西藏</option>
         
            <option  value="31">云南省</option>
         
            <option  value="32">香港</option>
         
            <option  value="33">澳门</option>
         
            <option  value="34">台湾</option>
         
            <option  value="35">国外与其它</option>
         
                                </select>
                                所属城市:
                                <select id="Select1" class="input01" name="shiid"  style="width: 140px;">
                                    <option></option>
                                </select>
</form>


<script Language="JavaScript"><!--
 var onecount;
     onecount=0;
 subcat = new Array();
   
  subcat[0] = new Array("玉树藏族自治州","24","430"); 
   
  subcat[1] = new Array("台湾","34","429"); 
   
  subcat[2] = new Array("卢湾区","5","428"); 
   
  subcat[3] = new Array("西宁市","24","427"); 
   
  subcat[4] = new Array("金山区","5","424"); 
   
  subcat[5] = new Array("虹口区","5","423"); 
   
  subcat[6] = new Array("南汇区","5","422"); 
   
  subcat[7] = new Array("闵行区","5","421"); 
   
  subcat[8] = new Array("静安区","5","420"); 
   
  subcat[9] = new Array("嘉定区","5","419"); 
   
  subcat[10] = new Array("闸北区","5","418"); 
   
  subcat[11] = new Array("杨浦区","5","417"); 
   
  subcat[12] = new Array("徐汇区","5","416"); 
   
  subcat[13] = new Array("松江区","5","415"); 
   
  subcat[14] = new Array("青浦区","5","414"); 
   
  subcat[15] = new Arr