Song.Site/Templates/Web/Gov/Student/Scripts/panel.js

(开头部分) 4KB

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

$(function () {
    setMenuAccordion();
    setMenuStyle();
    setMenuEvent();
    //主管理区加载完成事件
    $("#adminPage").load(function () {
        $("#IframLoadMask").remove();
        var ifm = document.getElementById("adminPage");
        var subWeb = document.frames ? document.frames["adminPage"].document : ifm.contentDocument;
        if (ifm != null && subWeb != null) {
            ifm.height = subWeb.body.scrollHeight;
            ifm.focus();
        }
    });
    setInit();
    //学生中心的点击事件
    $(".menuTitle").click(function () {
        var ifm = document.getElementById("adminPage");
        var subWeb = document.frames ? document.frames["adminPage"].document : ifm.contentDocument;
        if (ifm != null && subWeb != null) {
            ifm.height = 0;
            ifm.focus();
        }
        var href = $(this).attr("href");
        $("#adminPage").attr("src", href);
        $().cookie("mmid", "-1");
        OpenLoadMask();
        //上方导航显示           
        var ptit = $.trim($(this).attr("href"));
        $("#menuPath").text("启始页");
        $("#menuPath").attr("href", href);
        return false;
    });
});
//设置菜单展开与折叠
function setMenuAccordion() {
    var first = $(".mmtop:first");
    first.addClass("currTop");
    first.next().slideDown();
    $(".mmtop").click(function () {
        $(".mmtop").removeClass("currTop");
        $(this).addClass("currTop");
        $(".twoBox:visible").slideUp();
        $(this).next().slideDown();
    });
}
//设置菜单样式
function setMenuStyle() {
    $("div.mmtwo a").each(function () {
        if ($(this).attr("isBold") == "True") {
            $(this).css("font-weight", "bold");
        }
        if ($(this).attr("href") == "") {
            $(this).css("color", "#000000");
        }
    });
}
//设置菜单事件
function setMenuEvent() {
    //左侧菜单的点击事件
后面还有 72 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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