AyaWo.Web/Content/loading.js
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**************************
*Desc:提交操作时遮罩
*Argument:type=0 全屏遮 1局部遮
*Author:Zery-Zhang
*Date:2014-09-18
*Version:1.0.0
**************************/
; (function ($) {
$.fn.jqLoading = function (option) {
var defaultVal = {
backgroudColor: "#ECECEC",//背景色
backgroundImage: "/content/loading.gif",//背景图片
text: "数据提交中....",//文字
width: 150,//宽度
height: 60,//高度
type: 0 //0全部遮,1 局部遮
};
var opt = $.extend({}, defaultVal, option);
if (opt.type == 0) {
//全屏遮
openLayer();
} else {
//局部遮(当前对象应为需要被遮挡的对象)
openPartialLayer(this);
}
//销毁对象
if (option === "destroy") {
closeLayer();
}
//设置背景层高
function height() {
//var scrollHeight, offsetHeight;
//// handle IE 6
//if ($.browser.msie && $.browser.version < 7) {
// scrollHeight = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight);
// offsetHeight = Math.max(document.documentElement.offsetHeight, document.body.offsetHeight);
// if (scrollHeight < offsetHeight) {
// return $(window).height();
// } else {
// return scrollHeight;
// }
// // handle "good" browsers
//}
//else if ($.browser.msie && $.browser.version == 8) {
// return $(document).height() - 4;
//}
//else {
// return $(document).height();
//}
return $(document).height();
};
//设置背景层宽
function width() {
//var scrollWidth, offsetWidth;
后面还有 94 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。