Song.Site/Manage/Panel/Scripts/DropMenu.js
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*!
* 主 题:《下拉菜单生成》
* 说 明:用于管理界面右上方的下拉菜单。
* 功能描述:
* 1、模仿桌面应用软件下拉菜单效果;
* 2、能够应用屏幕,当右侧空间不够时,下拉菜单向左展开
* 3、数源来源自/Static/SysMenuTree.html静态化数据
*
* 作 者:宋雷鸣
* 开发时间: 2012年2月13日
*/
//页面左侧树形菜单的面板
//area:下拉菜单所处在页面div区域
function DropMenu(area)
{
if(area!="" && area!=null)DropMenu.Area=area;
DropMenu.ZIndex=4000;
}
//菜单停留时间
DropMenu.MenuWaitTime=100;
//判断鼠标是否处在菜单之上
window.IsOnDropMenu=true;
function closeDropMenu()
{
if(!window.IsOnDropMenu)
{
var d=new DropMenu();
d.PanelHide();
}
}
//载入数据
DropMenu.prototype.load=function()
{
//$().SoapAjax("managemenu","DropMenu",{},BuildDropMenu,DropMenu.Loading,DropMenu.UnLoading);
$.get("panel/SysMenuTree.aspx", function(data){
var area=$(DropMenu.Area);
if(area.size()<1)return;
var drop=new DropMenu();
var tmp="";
//
area.html(data);
drop.MenuStyleInit();
drop.MenuStyleReset();
drop.Event();
});
}
//菜单样式初始化
DropMenu.prototype.MenuStyleInit=function()
{
var area=$(DropMenu.Area);
area.find("[type='menuPanel']").each(
function()
{
var level=Number($(this).attr("level"));
//顶部菜单
if(level==0)
{
后面还有 208 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
