Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\CSS\zh-CN\DefaultTheme\js\jquery.ad.js
function addEvent(obj, type, fn) { if (obj.addEventListener) obj.addEventListener(type, fn, false); else if (obj.attachEvent) { obj["e" + type + fn] = fn; obj.attachEvent("on" + type, function (e) { obj["e" + type + fn](e); }); } } function removeEvent(obj, type, fn) { if (obj.removeEventListener) obj.removeEventListener(type, fn, false); else if (obj.detachEvent) { obj.detachEvent("on" + type, obj["e" + type + fn]); obj["e" + type + fn] = null; } } function resetNavigaterForm(id) { var e = document.getElementById(id); e.reset(); } function is_ie() { return (/MSIE/g).test(window.navigator.userAgent); } var Rimifon = { "Ads": new Object, "NewFloatAd": function (imgUrl, strLink) { var ad = document.createElement("div"); ad.a = document.createElement("a"); var closebtn = document.createElement("a"); closebtn.style.backgroundColor = "#ccc"; if (is_ie()) { closebtn.style.filter = "alpha(opacity=90)"; } else { closebtn.style.backgroundColor = "rgba(200,200,200,.9)"; } closebtn.style.position = "absolute"; closebtn.style.right = 0; closebtn.style.top = 0; closebtn.style.zIndex = 205; closebtn.innerHTML = "X"; closebtn.href = "#"; closebtn.style.color = "#2222ee"; closebtn.style.border = "1px solid #2222ee"; closebtn.style.width = "15px"; closebtn.style.height = "15px"; closebtn.id = "clsbtn"; ad.DirV = true; ad.DirH = true; ad.AutoMove = true; ad.a.Image = new Image; ad.Seed = 400; ad.Timer = setInterval("Rimifon.Float(" + ad.Seed + ")", 50); this.Ads[ad.Seed] = ad; ad.a.Image.Parent = ad.a; ad.style.position = "absolute"; ad.style.left = 0; ad.style.top = 0; ad.style.width = "310px"; ad.style.height = "100px"; ad.style.zIndex = 200; ad.a.Image.style.width = "310px"; ad.a.Image.style.height = "100px"; ad.a.Image.style.zIndex = 203; ad.a.style.zIndex = 201; ad.a.Image.src = imgUrl; ad.a.style.position = "absolute"; ad.a.style.overflow = "hidden"; ad.a.Image.onmouseover = function () { ad.AutoMove = false; } ad.a.Image.onmouseout = function () { ad.AutoMove = true; } closebtn.onmouseover = function () { ad.AutoMove = false; } closebtn.onmouseout = function () { ad.AutoMove = true; } addEvent(closebtn, "click", function (event) { ad.style.display = "none"; if (event.preventDefault) { event.preventDefault(); } else { event.returnValue = false; } }); ///closebtn.onmousedown = function (event) { } if (strLink) { ad.a.href = strLink; ad.a.Image.border = 0; ad.a.target = "_blank"; } ad.a.appendChild(ad.a.Image); ad.appendChild(ad.a); ad.appendChild(closebtn); $("#ad_banner").append(ad); return ad; }, "Float": function (floatId) { var ad = this.Ads[floatId]; if (ad.AutoMove) { var curLeft = parseInt(ad.style.left); var curTop = parseInt(ad.style.top); if (ad.offsetWidth + curLeft > document.body.clientWidth + document.body.scrollLeft - 1) { curLeft = document.body.scrollLeft + document.body.clientWidth - ad.offsetWidth; ad.DirH = false; } if (ad.offsetHeight + curTop > document.body.clientHeight + document.body.scrollTop - 1) { curTop = document.body.scrollTop + document.body.clientHeight - ad.offsetHeight; ad.DirV = false; } if (curLeft < document.body.scrollLeft) { curLeft = document.body.scrollLeft; ad.DirH = true; } if (curTop < document.body.scrollTop) { curTop = document.body.scrollTop; ad.DirV = true; } ad.style.left = curLeft + (ad.DirH ? 1 : -1) + "px"; ad.style.top = curTop + (ad.DirV ? 1 : -1) + "px"; } } }
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de