Areas/Member/Js/Index.js

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

var $middlearea = $("#middlearea");
var $mainContainer = $("#mainContainer");

if (!Array.prototype.map) //ie专用
    Array.prototype.map = function (fn, scope) {
        var result = [], ri = 0;
        for (var i = 0, n = this.length; i < n; i++) {
            if (i in this) {
                result[ri++] = fn.call(scope, this[i], i, this);
            }
        }
        return result;
    };
var WindowSize = function () {
    return ["Height", "Width"].map(function (name) {
        return window["inner" + name] || document.compatMode === "CSS1Compat" && document.documentElement["client" + name] || document.body["client" + name]
    });
}
var leftWidth = 220;
var heights, width;
function WinSize() {
    var str = WindowSize();
    var strs = new Array();
    strs = str.toString().split(",");
    heights = strs[0] - 50;
    widths = strs[1];
    $('#main').height(heights);
    var setHeight = heights;
    $mainContainer.width(widths - leftWidth).height(setHeight);
    if (strs[1] < 1024) {
        $('#header').css('width', 1024 + 'px');
        $('#main').css('width', 1024 + 'px');
    } else {
        $('#header').css('width', 'auto');
        $('#main').css('width', 'auto');
    }
}

WinSize();
$(window).resize(function () {
    WinSize();
});


$.ajaxSetup({
    cache: false
});

//初始化dom对象

var $leftmenu_classname = $("#className");
var $leftmenu = $("#leftmenu");
var $leftmenu_div = $leftmenu.children("div");
var $leftmenu_findAllA = $leftmenu_div.find("a");
var $leftmenu_findAllSpan = $leftmenu_div.find("span");
var $leftmenu_childLi = $leftmenu_div.children().children();


//顶部menu
var $topmenu = $("#topmenu");

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。