Website/Admin/Picture/Scripts/LightBox.js
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var isIE = (document.all) ? true : false;
var isIE6 = isIE && ([/MSIE (\d)\.0/i.exec(navigator.userAgent)][0][1] == 6);
var $ = function (id) { return "string" == typeof id ? document.getElementById(id) : id;};
var Class = { create: function() {
return function() { this.initialize.apply(this, arguments); }
}}
var Extend = function(destination, source) {
for (var property in source) {
destination[property] = source[property];
}}
var Bind = function(object, fun) {
return function() {
return fun.apply(object, arguments);
}}
var Each = function(list, fun){
for (var i = 0, len = list.length; i < len; i++) { fun(list[i], i); }};
var Contains = function(a, b){
return a.contains ? a != b && a.contains(b) : !!(a.compareDocumentPosition(b) & 16);}
var OverLay = Class.create();
OverLay.prototype = {
initialize: function(options)
{
this.SetOptions(options);
this.Lay = $(this.options.Lay) || document.body.insertBefore(document.createElement("div"), document.body.childNodes[0]);
this.Color = this.options.Color;
this.Opacity = parseInt(this.options.Opacity);
this.zIndex = parseInt(this.options.zIndex);
with(this.Lay.style){ display = "none"; zIndex = this.zIndex; left = top = 0; position = "fixed"; width = height = "100%"; }
if(isIE6)
{
this.Lay.style.position = "absolute";
//ie6设置覆盖层大小程序
this._resize = Bind(this, function(){
this.Lay.style.width = Math.max(document.documentElement.scrollWidth, document.documentElement.clientWidth) + "px";
this.Lay.style.height = Math.max(document.documentElement.scrollHeight, document.documentElement.clientHeight) + "px";
});
//遮盖select
this.Lay.innerHTML = '<iframe style="position:absolute;top:0;left:0;width:100%;height:100%;filter:alpha(opacity=0);"></iframe>'
}
},
//设置默认属性
SetOptions: function(options)
{
this.options = {//默认值
Lay: null,//覆盖层对象
Color: "#333",//背景色
Opacity: 50,//透明度(0-100)
zIndex: 1000//层叠顺序
后面还有 116 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。