<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 閱讀(122) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     

    常用鏈接

    留言簿(5)

    隨筆分類

    隨筆檔案

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲精品第一国产综合野| 亚洲国产精久久久久久久| 亚洲高清有码中文字| 人禽杂交18禁网站免费| 亚洲一区二区三区深夜天堂| 国产精品怡红院永久免费| 亚洲香蕉久久一区二区| 67194熟妇在线永久免费观看| 亚洲欧洲精品国产区| 毛片基地免费视频a| 日韩欧美亚洲中文乱码| 在线a亚洲v天堂网2018| caoporn成人免费公开| 最新精品亚洲成a人在线观看| 国产成人免费AV在线播放| 亚洲精品成人av在线| 成人免费福利视频| 亚洲精品理论电影在线观看| 免费夜色污私人影院在线观看| sss日本免费完整版在线观看| 亚洲精品无码永久在线观看你懂的| 97无码人妻福利免费公开在线视频| 亚洲视频在线一区| 成人免费无遮挡无码黄漫视频| 国产成人综合久久精品亚洲| 91麻豆国产自产在线观看亚洲 | 亚洲专区在线视频| 91精品国产免费久久久久久青草| 亚洲精华液一二三产区| 中文字幕第13亚洲另类| 亚洲黄色免费网址| 国产精品亚洲专区无码牛牛| 国产av无码专区亚洲av桃花庵| 在线永久看片免费的视频| 日韩国产欧美亚洲v片| 亚洲电影一区二区三区| 德国女人一级毛片免费| 大妹子影视剧在线观看全集免费| 亚洲黄色网站视频| 久久国产成人精品国产成人亚洲| 18禁无遮挡无码国产免费网站|