当前位置: 代码迷 >> JavaScript >> jquery的导航页面十(nodeDocPage.jsp续)
  详细解决方案

jquery的导航页面十(nodeDocPage.jsp续)

热度:793   发布时间:2012-10-27 10:42:25.0
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;
    }
  相关解决方案