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

jquery的导航页面10(nodeDocPage.jsp续)
else {
            $(".navi_corn_main").css("visibility", "hidden");
            $(".navi_boxcontent_main").css("visibility", "hidden");
            $("#navi_corn_middle_div").text("");
            $("#product_doc_table").css("visibility", "hidden");
            $("#navi_doc_download_div").css("visibility", "hidden");
            $("select").css("visibility", "hidden");
            $("#pageBarBottom").css("visibility", "hidden");
            $("#pageBarTop").css("visibility", "hidden");
           
        }
    }
 
    function sortSubnodes(childNodes) {
        if (childNodes == null) {
            return false;
        }
        var len = childNodes.length;
        // 列数
        var cols = 4;
        // 行数
        var rows = Math.ceil(len / 4);
       
        var nodeArray = new Array(rows);
        for (var i = 0; i < rows; i++) {
            nodeArray[i] = new Array(cols);
        }
        for (var i = 0; i < cols; i++) {
            for (var j = 0; j < rows; j++) {
                if (rows * i + j < len) {
                    nodeArray[j][i] = childNodes[rows * i + j];
                }
            }
        }
       
        return nodeArray;
    }