Song.Site/obj/Debug/Package/PackageTmp/Manage/Panel/Scripts/PageBox.js
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*!
* 主 题:《页面弹出窗口》
* 说 明:用于子页面弹出时的窗口。
* 功能描述:
* 1、生成弹出窗口,窗口内包括iframe控件,用于加载实际控制页面;
* 2、窗口弹出时,生成背景遮罩;
* 3、窗口最小为宽高100,小于等于100时,宽高值默认为浏览器窗口的百分比;
*
*
* 作 者:宋雷鸣
* 开发时间: 2012年12月28日
*/
//窗体Jquery对象
PageBox.prototype.WinBox = null;
//弹出窗口的主类
//title:窗口标题
//page:打开的页面
//width:窗口宽度
//height:窗口高度
//widId:窗口id
function PageBox(title, page, width, height, winId) {
this.Init(title, page, width, height, winId);
}
//初始化参数
PageBox.prototype.Init = function (title, page, width, height, winId) {
title = title != null && title != "" ? title : "newWinBox";
//如果为空,则为浏览器窗口一半宽高
width = width != null && width != 0 && width != "" ? Number(width) : $("body").width() / 2;
height = height != null && height != 0 && height != "" ? Number(height) : $("body").height() / 2;
//如果宽高小于100,则默认为浏览器窗口的百分比
width = width > 100 ? Number(width) : $("body").width() * Number(width) / 100;
height = height > 100 ? Number(height) : $("body").height() * Number(height) / 100;
//alert(winId);
if (winId == null) {
winId = new Date().ToString() + "_" + Math.floor(Math.random() * 1000 + 1);
}
//
this.Title = title;
this.Width = width;
this.Height = height;
this.Page = page;
this.WinId = winId;
}
//创建窗口,并打开
PageBox.prototype.Open = function (title, page, width, height, winId) {
//判断是否已经存在窗口
var WinBox = $("#PageBox[winId='" + this.WinId + "']");
if (WinBox.size() > 0) return;
this.Close();
//生成窗口
this.Mask();
this.BuildFrame();
this.BuildTitle();
this.BuildIFrame();
//设置拖动
$("#PageBox").easydrag();
$("#PageBox").setHandler("PageBoxTitle");
//开始拖动
$("#PageBox").ondrag(function () {
后面还有 155 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
