Song.Site/obj/Debug/Package/PackageTmp/Manage/Sys/Scripts/MenuTree.js
(开头部分) 14KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$("#MenuTreePanel").select(function () {
//return false;
});
//分类的根节点
var rootid = $().getPara("id");
rootid = parseInt(rootid) < 0 ? 0 : parseInt(rootid);
//默认图标的坐标
var icoX = 90; icoY = 101;
//
$(function () {
setTimeout("initloyout()", 100);
setEditPanel("root");
icoEvent();
var id = $().getPara("id");
$().SoapAjax("ManageMenu", "Order", { result: "", rootid: rootid, type: "func" }, funcc, loading, unloading);
});
//页面初始化布局
function initloyout() {
$("input[type='text']").addClass("TextBox");
//左侧菜单树区域 //右侧编辑区域
var h = document.documentElement.clientHeight - 20;
$("#MenuTreePanel").height(h - 120);
$("#Panel").height(h - 153);
//右侧编辑区事件
$("#EditPanelTitle div").click(function () {
var type = $(this).attr("type");
setEditPanel(type);
});
//保存按钮
$("input[name$='btnEnter']").click(function () {
//提交编辑数据
UpdateNode();
return false;
});
}
//图示事件
function icoEvent() {
$(".ico").click(function () {
var panel = $("#icoPanel");
var off = $(this).offset();
panel.css({ left: off.left - panel.width() / 2, top: off.top + $(this).height() });
panel.show();
panel.mousemove(function (elem, e) {
var ico = $(".ico:visible");
var xy = $().Mouse(e);
var off = $("#icoPanel").offset();
var x = xy.x - off.left - 8;
var y = xy.y - off.top - 9;
ico.attr("left", x).attr("top", y);
ico.css("background-position", (-x + "px ") + (-y + "px"));
});
panel.click(function () {
$(this).unbind("click");
$(this).unbind("mousemove");
$(this).hide();
});
});
}
//数据载入完成后的事件
//data:完整数据源,webservice输出
后面还有 278 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
