Song.Site/Templates/Web/Gov/Teacher/Scripts/Panel.js
(开头部分) 3KB这里只显示每个文件的开头 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;
}
});
setInit();
});
//设置菜单展开与折叠
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() {
//左侧菜单的点击事件
$("div.mmtwo a").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;
}
var p = $(this).parent();
$(".mmtwo").removeClass("currTwo");
p.addClass("currTwo");
if (p.attr("mmtype") == "item") {
//右侧内容区的页面
var href = $(this).attr("href");
$("#adminPage").attr("src", href);
OpenLoadMask();
//上方导航显示
var title = $.trim($(this).text());
var ptit = $.trim($(this).parent().parent().prev().text());
$("#menuPath").text(ptit + ">>" + title);
$("#menuPath").attr("href", href);
后面还有 50 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
