下面开始代码:
<body>
    <form name="form1" method="post" action="ziliao_edit.aspx" id="form1" enctype="multipart/form-data">
<xml id="xml_RelatedList4">
<Root value="0" text="NULL">
  <one value="10000" text="安徽" valueReal="1" >
    <two value="1" text="安庆" />
    <two value="2" text="蚌埠" />
    <two value="3" text="巢湖" />
    <two value="4" text="池州" />
    <two value="5" text="滁州" />
    <two value="6" text="阜阳" />
    <two value="7" text="合肥" />    <two value="8" text="淮北" />
    <two value="9" text="淮南" />
    <two value="10" text="黄山" />
    <two value="11" text="六安" />
    <two value="12" text="马鞍山" />
    <two value="13" text="宿州" />
    <two value="14" text="铜陵" />
    <two value="15" text="芜湖" />
    <two value="16" text="宣城" />    <two value="17" text="亳州" />
  </one>
  <one value="20000" text="北京" valueReal="2" >
    <two value="18" text="北京" />
  </one>
  <one value="30000" text="福建" valueReal="3" >
    <two value="19" text="福州" />
    <two value="20" text="龙岩" />
    <two value="21" text="南平" />    <two value="22" text="宁德" />
    <two value="23" text="莆田" />
    <two value="24" text="泉州" />
    <two value="25" text="三明" />
    <two value="26" text="厦门" />
    <two value="27" text="漳州" />
  </one>
  <one value="40000" text="甘肃" valueReal="4" >
    <two value="28" text="白银" />    <two value="29" text="定西" />
    <two value="30" text="甘南藏族自治州" />
    <two value="31" text="嘉峪关" />
    <two value="32" text="金昌" />
    <two value="33" text="酒泉" />
    <two value="34" text="兰州" />
    <two value="35" text="临夏回族自治州" />
    <two value="36" text="陇南" />
    <two value="37" text="平凉" />    <two value="38" text="庆阳" />
    <two value="39" text="天水" />
    <two value="40" text="武威" />
    <two value="41" text="张掖" />
  </one>
  <one value="50000" text="广东" valueReal="5" >
    <two value="42" text="潮州" />
    <two value="43" text="东莞" />
    <two value="44" text="佛山" />    <two value="45" text="广州" />
    <two value="46" text="河源" />
    <two value="47" text="惠州" />
    <two value="48" text="江门" />
    <two value="49" text="揭阳" />
    <two value="50" text="茂名" />
    <two value="51" text="梅州" />
    <two value="52" text="清远" />
    <two value="53" text="汕头" />    <two value="54" text="汕尾" />
    <two value="55" text="韶关" />
    <two value="56" text="深圳" />
    <two value="57" text="阳江" />
    <two value="58" text="云浮" />
    <two value="59" text="湛江" />
    <two value="60" text="肇庆" />
    <two value="61" text="中山" />
    <two value="62" text="珠海" />  </one>
  <one value="60000" text="广西" valueReal="6" >
    <two value="63" text="百色" />
    <two value="64" text="北海" />
    <two value="65" text="崇左" />
    <two value="66" text="防城港" />
    <two value="67" text="桂林" />
    <two value="68" text="贵港" />
    <two value="69" text="河池" />    <two value="70" text="贺州" />
    <two value="71" text="来宾" />
    <two value="72" text="柳州" />
    <two value="73" text="南宁" />
    <two value="74" text="钦州" />
    <two value="75" text="梧州" />
    <two value="76" text="玉林" />
  </one>
  <one value="70000" text="贵州" valueReal="7" >    <two value="77" text="安顺" />
    <two value="78" text="毕节" />
    <two value="79" text="贵阳" />
    <two value="80" text="六盘水" />
    <two value="81" text="黔东南苗族侗族自治州" />
    <two value="82" text="黔南布依族苗族自治州" />
    <two value="83" text="黔西南布依族苗族自治州" />
    <two value="84" text="铜仁" />
    <two value="85" text="遵义" />

解决方案 »

  1.   


      </one>
      <one value="80000" text="海南" valueReal="8" >
        <two value="86" text="白沙黎族自治县" />
        <two value="87" text="保亭黎族苗族自治县" />
        <two value="88" text="昌江黎族自治县" />
        <two value="89" text="澄迈县" />
        <two value="90" text="定安县" />
        <two value="91" text="东方" />
        <two value="92" text="海口" />    <two value="93" text="乐东黎族自治县" />
        <two value="94" text="临高县" />
        <two value="95" text="陵水黎族自治县" />
        <two value="96" text="琼海" />
        <two value="97" text="琼中黎族苗族自治县" />
        <two value="98" text="三亚" />
        <two value="99" text="屯昌县" />
        <two value="100" text="万宁" />
        <two value="101" text="文昌" />    <two value="102" text="五指山" />
        <two value="103" text="儋州" />
      </one>
      <one value="90000" text="河北" valueReal="9" >
        <two value="104" text="保定" />
        <two value="105" text="沧州" />
        <two value="106" text="承德" />
        <two value="107" text="邯郸" />
        <two value="108" text="衡水" />    <two value="109" text="廊坊" />
        <two value="110" text="秦皇岛" />
        <two value="111" text="石家庄" />
        <two value="112" text="唐山" />
        <two value="113" text="邢台" />
        <two value="114" text="张家口" />
      </one>
      <one value="100000" text="河南" valueReal="10" >
        <two value="115" text="安阳" />    <two value="116" text="鹤壁" />
        <two value="117" text="济源" />
        <two value="118" text="焦作" />
        <two value="119" text="开封" />
        <two value="120" text="洛阳" />
        <two value="121" text="南阳" />
        <two value="122" text="平顶山" />
        <two value="123" text="三门峡" />
        <two value="124" text="商丘" />    <two value="125" text="新乡" />
        <two value="126" text="信阳" />
        <two value="127" text="许昌" />
        <two value="128" text="郑州" />
        <two value="129" text="周口" />
        <two value="130" text="驻马店" />
        <two value="131" text="漯河" />
        <two value="132" text="濮阳" />
      </one>  <one value="110000" text="黑龙江" valueReal="11" >
        <two value="133" text="大庆" />
        <two value="134" text="大兴安岭" />
        <two value="135" text="哈尔滨" />
        <two value="136" text="鹤岗" />
        <two value="137" text="黑河" />
        <two value="138" text="鸡西" />
        <two value="139" text="佳木斯" />
        <two value="140" text="牡丹江" />    <two value="141" text="七台河" />
        <two value="142" text="齐齐哈尔" />
        <two value="143" text="双鸭山" />
        <two value="144" text="绥化" />
        <two value="145" text="伊春" />
      </one>
      <one value="120000" text="湖北" valueReal="12" >
        <two value="146" text="鄂州" />
        <two value="147" text="恩施土家族苗族自治州" />    <two value="148" text="黄冈" />
        <two value="149" text="黄石" />
        <two value="150" text="荆门" />
        <two value="151" text="荆州" />
        <two value="152" text="潜江" />
        <two value="153" text="神农架林区" />
        <two value="154" text="十堰" />
        <two value="155" text="随州" />
        <two value="156" text="天门" />    <two value="157" text="武汉" />
        <two value="158" text="仙桃" />
        <two value="159" text="咸宁" />
        <two value="160" text="襄樊" />
        <two value="161" text="孝感" />
        <two value="162" text="宜昌" />
      </one>
      <one value="130000" text="湖南" valueReal="13" >
        <two value="163" text="常德" />    <two value="164" text="长沙" />
        <two value="165" text="郴州" />
        <two value="166" text="衡阳" />
        <two value="167" text="怀化" />
        <two value="168" text="娄底" />
        <two value="169" text="邵阳" />
        <two value="170" text="湘潭" />
        <two value="171" text="湘西土家族苗族自治州" />
        <two value="172" text="益阳" />    <two value="173" text="永州" />
        <two value="174" text="岳阳" />
        <two value="175" text="张家界" />
        <two value="176" text="株洲" />
      </one>
      <one value="140000" text="吉林" valueReal="14" >
        <two value="177" text="白城" />
        <two value="178" text="白山" />
        <two value="179" text="长春" />    <two value="180" text="吉林" />
        <two value="181" text="辽源" />
        <two value="182" text="四平" />
        <two value="183" text="松原" />
        <two value="184" text="通化" />
        <two value="185" text="延边朝鲜族自治州" />
      </one>
      <one value="150000" text="江苏" valueReal="15" >
        <two value="186" text="常州" />    <two value="187" text="淮安" />
        <two value="188" text="连云港" />
        <two value="189" text="南京" />
        <two value="190" text="南通" />
        <two value="191" text="苏州" />
        <two value="192" text="宿迁" />
        <two value="193" text="泰州" />
        <two value="194" text="无锡" />
        <two value="195" text="徐州" />    <two value="196" text="盐城" />
        <two value="197" text="扬州" />
        <two value="198" text="镇江" />
      </one>
      <one value="160000" text="江西" valueReal="16" >
        <two value="199" text="抚州" />
        <two value="200" text="赣州" />
        <two value="201" text="吉安" />
        <two value="202" text="景德镇" />    <two value="203" text="九江" />
        <two value="204" text="南昌" />
        <two value="205" text="萍乡" />
        <two value="206" text="上饶" />
        <two value="207" text="新余" />
        <two value="208" text="宜春" />
        <two value="209" text="鹰潭" />
      </one>
      <one value="170000" text="辽宁" valueReal="17" >    <two value="210" text="鞍山" />
        <two value="211" text="本溪" />
        <two value="212" text="朝阳" />
        <two value="213" text="大连" />
        <two value="214" text="丹东" />
        <two value="215" text="抚顺" />
        <two value="216" text="阜新" />
        <two value="217" text="葫芦岛" />
        <two value="218" text="锦州" />    <two value="219" text="辽阳" />
        <two value="220" text="盘锦" />
        <two value="221" text="沈阳" />
        <two value="222" text="铁岭" />
        <two value="223" text="营口" />
      </one>
      <one value="180000" text="内蒙古" valueReal="18" >
        <two value="224" text="阿拉善盟" />
        <two value="225" text="巴彦淖尔盟" />    <two value="226" text="包头" />
        <two value="227" text="赤峰" />
        <two value="228" text="鄂尔多斯" />
        <two value="229" text="呼和浩特" />
        <two value="230" text="呼伦贝尔" />
        <two value="231" text="通辽" />
        <two value="232" text="乌海" />
        <two value="233" text="乌兰察布盟" />
        <two value="234" text="锡林郭勒盟" />    <two value="235" text="兴安盟" />
      </one>
      <one value="190000" text="宁夏" valueReal="19" >
        <two value="236" text="固原" />
        <two value="237" text="石嘴山" />
        <two value="238" text="吴忠" />
        <two value="239" text="中卫市" />
        <two value="240" text="银川" />
      </one>
      

  2.   


      <one value="200000" text="青海" valueReal="20" >
        <two value="241" text="果洛藏族自治州" />
        <two value="242" text="海北藏族自治州" />
        <two value="243" text="海东" />
        <two value="244" text="海南藏族自治州" />
        <two value="245" text="海西蒙古族藏族自治州" />
        <two value="246" text="黄南藏族自治州" />
        <two value="247" text="西宁" />
        <two value="248" text="玉树藏族自治州" />  </one>
      <one value="210000" text="山东" valueReal="21" >
        <two value="249" text="滨州" />
        <two value="250" text="德州" />
        <two value="251" text="东营" />
        <two value="252" text="菏泽" />
        <two value="253" text="济南" />
        <two value="254" text="济宁" />
        <two value="255" text="莱芜" />    <two value="256" text="聊城" />
        <two value="257" text="临沂" />
        <two value="258" text="青岛" />
        <two value="259" text="日照" />
        <two value="260" text="泰安" />
        <two value="261" text="威海" />
        <two value="262" text="潍坊" />
        <two value="263" text="烟台" />
        <two value="264" text="枣庄" />    <two value="265" text="淄博" />
      </one>
      <one value="220000" text="山西" valueReal="22" >
        <two value="266" text="长治" />
        <two value="267" text="大同" />
        <two value="268" text="晋城" />
        <two value="269" text="晋中" />
        <two value="270" text="临汾" />
        <two value="271" text="吕梁" />    <two value="272" text="朔州" />
        <two value="273" text="太原" />
        <two value="274" text="忻州" />
        <two value="275" text="阳泉" />
        <two value="276" text="运城" />
      </one>
      <one value="230000" text="陕西" valueReal="23" >
        <two value="277" text="安康" />
        <two value="278" text="宝鸡" />    <two value="279" text="汉中" />
        <two value="280" text="商洛" />
        <two value="281" text="铜川" />
        <two value="282" text="渭南" />
        <two value="283" text="西安" />
        <two value="284" text="咸阳" />
        <two value="285" text="延安" />
        <two value="286" text="榆林" />
      </one>  <one value="240000" text="上海" valueReal="24" >
        <two value="287" text="上海" />
      </one>
      <one value="250000" text="四川" valueReal="25" >
        <two value="289" text="巴中" />
        <two value="290" text="成都" />
        <two value="291" text="达州" />
        <two value="292" text="德阳" />
        <two value="293" text="甘孜藏族自治州" />    <two value="294" text="广安" />
        <two value="295" text="广元" />
        <two value="296" text="乐山" />
        <two value="297" text="凉山彝族自治州" />
        <two value="298" text="眉山" />
        <two value="299" text="绵阳" />
        <two value="300" text="南充" />
        <two value="301" text="内江" />
        <two value="302" text="攀枝花" />    <two value="303" text="遂宁" />
        <two value="304" text="雅安" />
        <two value="305" text="宜宾" />
        <two value="306" text="资阳" />
        <two value="307" text="自贡" />
        <two value="308" text="泸州" />
        <two value="288" text="阿坝藏族羌族自治州" />
      </one>
      <one value="260000" text="天津" valueReal="26" >    <two value="309" text="天津" />
      </one>
      <one value="270000" text="西藏" valueReal="27" >
        <two value="310" text="阿里" />
        <two value="311" text="昌都" />
        <two value="312" text="拉萨" />
        <two value="313" text="林芝" />
        <two value="314" text="那曲" />
        <two value="315" text="日喀则" />    <two value="316" text="山南" />
      </one>
      <one value="280000" text="新疆" valueReal="28" >
        <two value="317" text="阿克苏" />
        <two value="318" text="阿拉尔" />
        <two value="319" text="巴音郭楞蒙古自治州" />
        <two value="320" text="博尔塔拉蒙古自治州" />
        <two value="321" text="昌吉回族自治州" />
        <two value="322" text="哈密" />    <two value="323" text="和田" />
        <two value="324" text="喀什" />
        <two value="325" text="克拉玛依" />
        <two value="326" text="克孜勒苏柯尔克孜自治州" />
        <two value="327" text="石河子" />
        <two value="328" text="图木舒克" />
        <two value="329" text="吐鲁番" />
        <two value="330" text="乌鲁木齐" />
        <two value="331" text="五家渠" />    <two value="332" text="伊犁哈萨克自治州" />
      </one>
      <one value="290000" text="云南" valueReal="29" >
        <two value="333" text="保山" />
        <two value="334" text="楚雄彝族自治州" />
        <two value="335" text="大理白族自治州" />
        <two value="336" text="德宏傣族景颇族自治州" />
        <two value="337" text="迪庆藏族自治州" />
        <two value="338" text="昆明" />    <two value="339" text="丽江" />
        <two value="340" text="临沧" />
        <two value="341" text="红河哈尼族彝族自治州" />
        <two value="342" text="怒江傈傈族自治州" />
        <two value="343" text="思茅" />
        <two value="344" text="文山壮族苗族自治州" />
        <two value="345" text="西双版纳傣族自治州" />
        <two value="346" text="玉溪" />
        <two value="347" text="昭通" />  </one>
      <one value="300000" text="浙江" valueReal="30" >
        <two value="348" text="杭州" />
        <two value="349" text="湖州" />
        <two value="350" text="嘉兴" />
        <two value="351" text="金华" />
        <two value="352" text="丽水" />
        <two value="353" text="宁波" />
        <two value="354" text="绍兴" />    <two value="355" text="台州" />
        <two value="356" text="温州" />
        <two value="357" text="舟山" />
        <two value="358" text="衢州" />
      </one>
      <one value="310000" text="重庆" valueReal="31" >
        <two value="359" text="重庆" />
      </one>
      <one value="320000" text="台湾" valueReal="32" >    <two value="360" text="台湾" />
      </one>
      <one value="330000" text="香港" valueReal="33" >
        <two value="361" text="香港" />
      </one>
      <one value="340000" text="澳门" valueReal="34" >
        <two value="362" text="澳门" />
      </one>
    </Root></xml>
      

  3.   

    <script language="javascript">
    function updateOption(currentValue, listIndex, relatedListID)
    {
    var i, nextValue = 0;
    var index = listIndex + 1;
    var thisLists = "lists_" + relatedListID;
    var xmlDataID = "xml_" + relatedListID;

    if (listIndex >= eval(thisLists + ".length") - 1)
    {
    updateInput(relatedListID);
    return;
    }

    var tmpID = eval(thisLists + "[index]");
    with(document.all(tmpID))
    {
    length = 0;
    if (currentValue != 0)
    {
    var nodes = document.all(xmlDataID).XMLDocument.selectSingleNode('//*'  + '[@value="' + currentValue + '"]');

    if (nodes.childNodes.length > 0)
    {
    nextValue = nodes.childNodes[0].getAttribute("value");
    for (i = 0; i < nodes.childNodes.length; i++)
    {
    var j = length++;
    options[j].text = nodes.childNodes[i].getAttribute("text");
    options[j].value = nodes.childNodes[i].getAttribute("value");

    }
    }
    else
    {
    var j = length++;
    options[j].text = "请选择";
    options[j].value = 0;
    }

    }
    else
    {
    var j = length++;
    options[j].text = "请选择";
    options[j].value = 0;
    }
    }

    var onchange = new Function("updateOption(" + nextValue + "," + index + ",'" + relatedListID + "')");
    onchange();

    }function updateInput(relatedListID)
    {
    var i, j;
    var thisLists = "lists_" + relatedListID;

    with(document.all(relatedListID))
    {
    value = "";

    for (i = 0; i < eval(thisLists + ".length"); i++)
    {
    j = document.all(eval(thisLists + "[i]")).selectedIndex;
    value += (document.all(eval(thisLists + "[i]")).options[j].value + "\x03");
    }
    }
    }</script>
      

  4.   

     <table width="800" border="0" align="center" cellpadding="0" cellspacing="0" class="black b03">
      <tr>
        <td height="30" align="right">经销商所在省份:</td>
        <td align="left">
        <select name="DropDownList4" id="DropDownList4" onchange="updateOption(this.value,0,'RelatedList4')">
    <option value="0">请选择</option>
    <option value="10000">安徽</option>
    <option value="100000">河南</option> <option value="110000">黑龙江</option>
    <option selected="selected" value="120000">湖北</option>
    <option value="130000">湖南</option>
    <option value="140000">吉林</option>
    <option value="150000">江苏</option>
    <option value="160000">江西</option> <option value="170000">辽宁</option>
    <option value="180000">内蒙古</option>
    <option value="190000">宁夏</option>
    <option value="20000">北京</option>
    <option value="200000">青海</option>
    <option value="210000">山东</option> <option value="220000">山西</option>
    <option value="230000">陕西</option>
    <option value="240000">上海</option>
    <option value="250000">四川</option>
    <option value="260000">天津</option>
    <option value="270000">西藏</option> <option value="280000">新疆</option>
    <option value="290000">云南</option>
    <option value="30000">福建</option>
    <option value="300000">浙江</option>
    <option value="310000">重庆</option>
    <option value="320000">台湾</option> <option value="330000">香港</option>
    <option value="340000">澳门</option>
    <option value="40000">甘肃</option>
    <option value="50000">广东</option>
    <option value="60000">广西</option>
    <option value="70000">贵州</option> <option value="80000">海南</option>
    <option value="90000">河北</option></select>
           <select name="DropDownList5" id="DropDownList5" onchange="updateOption(this.value,1,'RelatedList4')">
    <option value="0">请选择</option>
    <option value="146">鄂州</option>
    <option value="147">恩施土家族苗族自治州</option> <option selected="selected" value="148">黄冈</option>
    <option value="149">黄石</option>
    <option value="150">荆门</option>
    <option value="151">荆州</option>
    <option value="152">潜江</option>
    <option value="153">神农架林区</option> <option value="154">十堰</option>
    <option value="155">随州</option>
    <option value="156">天门</option>
    <option value="157">武汉</option>
    <option value="158">仙桃</option>
    <option value="159">咸宁</option> <option value="160">襄樊</option>
    <option value="161">孝感</option>
    <option value="162">宜昌</option></select>
           <input type='hidden' name='RelatedList4'>
          <span class="org">*</span> </td>    <td align="left">&nbsp;</td>
      </tr>  
      <tr>    <td valign="middle" align="center" colspan="3" height="40"><input type="submit" value="确认无误,提交更改" name="Submit" /></td>
      </tr>
            </table>
          </div>
        </div>
      </div>
      <div class="main2">
      </div>
        </div>
       
    <script type="text/javascript">
    <!--
    var lists_RelatedList4 =  new Array("DropDownList4", "DropDownList5");
    // -->
    </script>
    </form>
    </body>
      

  5.   

    太长了,看不下去,firefox上面装一个firebug,调试一下js,看看是哪里不对
    或者直接改用这个jquery的插件,ie和firefox都没问题,也支持xml数据,不过返回的数据格式需要改一下
    http://www.cnblogs.com/luq885/archive/2007/11/14/959203.html
      

  6.   

    暂时发现document.all全部改为==>document.getElementById("控件的ID")
      

  7.   

    不知道ff支持不支持xpath,selectSingleNode我一般都是用
    Node.getElementsByTagName("TagName")