<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    function InitData(depth,parent,id)
    {
        var ele = document.getElementById(id);
        if(depth==1)
        {
            for(var i=0;i<firstSort.length;i++)
            {
            if(firstSort[i][0]==parent)
            ele.options.add(new Option(firstSort[i][2],firstSort[i][1]));
            }
        }
        else if(depth==2)
        {
            ele.options.length=0;
            for(var i=0;i<secondSort.length;i++)
            {
            if(secondSort[i][0]==parent)
            ele.options.add(new Option(secondSort[i][2],secondSort[i][1]));
            }
            ele.options.selectedIndex=0;
        }
        else if(depth==3)
        {
            ele.options.length=0;
            for(var i=0;i<thirdSort.length;i++)
            {
            if(thirdSort[i][0]==parent)
            ele.options.add(new Option(thirdSort[i][2],thirdSort[i][1]));
            }
            ele.options.selectedIndex=0;
        }
    }
    InitData("1","0","LbFirst");
    function secondSelect(first,second,third)
    {
        var tempSecIndex="";
        var tempThirIndex="";
        try{
         tempSecIndex = document.getElementById(first).options[document.getElementById(first).selectedIndex].value;
        }
        catch(e){
        tempSecIndex=0;
        }
        try{
         tempThirIndex = document.getElementById(second).options[document.getElementById(second).selectedIndex].value;
        }
        catch(e){
        tempThirIndex=0;
        }
        InitData("2",tempSecIndex,second);
        InitData("3",tempThirIndex,third);
    }
    function thirdSelect(parentId,selectId)
    {
        var tempSecIndex;
        try{
        tempSecIndex =  document.getElementById(parentId).options[document.getElementById(parentId).selectedIndex].value;
        }
        catch(e){
        tempSecIndex=0;
        }
        InitData("3",tempSecIndex,selectId)
    }
    function allsort()
    {
    var tempFir= document.getElementById("LbFirst").options[document.getElementById("LbFirst").selectedIndex].value;
    var tempSec= document.getElementById("LbSecond").options[document.getElementById("LbSecond").selectedIndex].value;
    alert(document.getElementById("LbThird").selectedIndex);
    var tempThir= document.getElementById("LbThird").selectedIndex>-1?(document.getElementById("LbThird").options[document.getElementById("LbThird").selectedIndex].value):(0);
    selectIndex("LbFirst",tempFir,"LbSecond",tempSec,"LbThird",tempThir);
    }
    function selectIndex(firId,firSort,secId,secSort,thirId,thirSort)
    {
        if(firSort.length>0){     
           listSelect(firId,firSort)
        }
        if(secSort.length>0){  
         secondSelect(firId,secId,thirId)  
           listSelect(secId,secSort)
        }
        if(thirSort.length>0){   
         thirdSelect(secId,thirId) 
           listSelect(thirId,thirSort)
        }
    }
    function listSelect(lId,lSort)
    {
     var firSortEle = document.getElementById(lId).options;
           for(var i=0;i<firSortEle.length;i++){
          if(firSortEle[i].value==lSort){
          firSortEle[i].selected=true;
          break;
          }   
         }
    }
    selectIndex("LbFirst","6A726A","LbSecond","47E3B5","LbThird","19F5F1");
    posted on 2009-03-28 18:29 sanmao 閱讀(121) 評(píng)論(0)  編輯  收藏

    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     

    常用鏈接

    留言簿(5)

    隨筆分類(lèi)

    隨筆檔案

    搜索

    •  

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    主站蜘蛛池模板: 久久久久亚洲精品无码蜜桃| 亚洲校园春色小说| 男人都懂www深夜免费网站| 亚洲精品亚洲人成在线观看麻豆 | 亚洲精品网站在线观看你懂的| 嘿嘿嘿视频免费网站在线观看| 久久精品国产亚洲AV| 亚洲色精品aⅴ一区区三区| 91频在线观看免费大全| 在线播放免费人成视频网站| 香蕉视频在线观看亚洲| 在线免费视频一区| a毛片视频免费观看影院| 性xxxx黑人与亚洲| 亚洲乱码日产一区三区| 香蕉高清免费永久在线视频| 全黄大全大色全免费大片| 亚洲精品无码成人片久久不卡 | 最近中文字幕免费2019| 亚洲a∨无码一区二区| 亚洲激情中文字幕| 免费a在线观看播放| 在线看片v免费观看视频777| caoporm超免费公开视频| 中文字幕乱码亚洲精品一区| 亚洲精品成人片在线播放| 国产成人免费网站在线观看| 久久久久高潮毛片免费全部播放| 免费观看亚洲人成网站| 亚洲av无码一区二区三区天堂古代 | 在线观看永久免费视频网站| 无码国产精品一区二区免费vr | 亚洲狠狠婷婷综合久久久久 | 久久亚洲精品人成综合网| va亚洲va日韩不卡在线观看| 青苹果乐园免费高清在线| 免费91最新地址永久入口 | 亚洲六月丁香六月婷婷蜜芽| 亚洲国产成人片在线观看| 亚洲国产精品成人网址天堂| 成人毛片视频免费网站观看|