b2csys/WebRoot/commfiles/js/login.js
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
function fadeShow(idObjSrc,idShowDivContainer,hotArea){
this.strTimeOut = "";
this.bleIsShow = false;
this.idObjSrc = "";
if(typeof(idObjSrc) == "object"){
this.idObjSrc = idObjSrc;
} else if(typeof(idObjSrc) == "string"){
this.idObjSrc = "#" + idObjSrc;
}
this.hotArea = hotArea || this.idObjSrc;
this.idShowDivContainer = "";
if(typeof(idShowDivContainer) == "object"){
this.idShowDivContainer = idShowDivContainer;
} else if(typeof(idShowDivContainer) == "string"){
this.idShowDivContainer = "#" + idShowDivContainer;
}
this.init();
}
fadeShow.prototype.init = function(){
var thisObj = this;
var widthTemp = $(this.idShowDivContainer).outerWidth();
var objTop = $(this.idObjSrc).offset().top;
var objLeft = $(this.idObjSrc).offset().left;
var objWidth = $(this.idObjSrc).width();
var objHeight = $(this.idObjSrc).height();
var leftTemp = parseInt(objLeft)+parseInt(objWidth)-parseInt(widthTemp);
var topTemp = parseInt(objTop)+parseInt(objHeight);
$(this.idShowDivContainer).css({position:"absolute",top:topTemp + "px",left:leftTemp+"px"}).mouseout(function(e){
thisObj.hide(e);
});
$(this.hotArea).mouseout(function(e){
thisObj.hide(e);
});
}
fadeShow.prototype.hide = function(evt){
evt = (evt)?evt:window.event;
var toElementObj;
if($.browser.msie){
toElementObj = evt.toElement;
} else if($.browser.mozilla){
toElementObj = evt.relatedTarget;
} else {
toElementObj = evt.relatedTarget;
}
var thisObj = this;
if ($(this.idShowDivContainer)[0].contains(toElementObj) || $(this.hotArea)[0].contains(toElementObj)) {
this.bleIsShow = false;
} else {
this.bleIsShow = true;
if(this.strTimeOut == ""){
this.strTimeOut = setTimeout(function(){thisObj.doHide()},1000);
}
}
}
后面还有 194 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
