⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bothadv.js

📁 网店批发系统,很好很强大,很好很强大很好很强大
💻 JS
字号:
var bName = navigator.appName;//bName => browserName 
var _st = window.setTimeout;//setTimeoutú
//--------------------------------------------------------
function startCouplet(a,b,x,y,z){//a,b Divid;x,ն߼;y,նļ;z,flashַ
	if(bName == "Microsoft Internet Explorer"){	
		if(document.body.offsetWidth>800){
			initEcAd(a,b,x,y,z);
		}
	}else{
		initEcAd(a,b,x,y,z);
	}
}
function initEcAd(a,b,x,y,z) {
	document.write("<div id="+a+" style='position: absolute;visibility:hidden;z-index:1'>dfsdfsdfsdfsdf</div>"
				  +"<div id="+b+" style='position: absolute;visibility:hidden;z-index:1'>sdfsdf</div>")
	document.getElementById(a).style.top = "-200px";
	document.getElementById(a).style.visibility = "visible";
	document.getElementById(b).style.top = "-200px";
	document.getElementById(b).style.visibility = "visible";
	document.write("<script type='text\/javascript' for='EccoolAd' event='fscommand()' language='javascript'>"
					  +"document.getElementById('"+a+"').style.visibility='hidden';"
					  +"document.getElementById('"+b+"').style.visibility='hidden';"
				  +"<\/script>")
	moveLayer(a,0,x,y);
	moveLayer(b,1,x,y);
}
function moveLayer(layer,a,x,y) {//a=0ʾa=1ʾ
	var z = document.getElementById(layer);
	var lastY = parseFloat(z.style.top);
	lastY+= (y -parseFloat(z.style.top))*0.2;//ȼٹʽϵ0.2
	z.style.top =  lastY+"px";
	switch(a){//breakΪ˼firefox
		case 0:z.style.left = x+"px";break;
		case 1:z.style.right = x+"px";break;
		default:z.style.left = x+"px";
	}
	if(Math.round(lastY)<y-4){
		setTimeout(moveLayer,20,layer,a,x,y);//ݹ飬ֹѭparseFloat(z.style.top)=y-4ΪʲôΪ4
	}
}
//--------------------------------------------------------
window.setTimeout = function(fRef, mDelay) {//setTimeoutʹԴݴĺ
    if (typeof fRef == 'function') {
        var argu = Array.prototype.slice.call(arguments,2);
        var f = (function(){ fRef.apply(null, argu); });
        return _st(f, mDelay);
    }
    return _st(fRef,mDelay);
}
//--------------------------------------------------------
startCouplet("Ly1","Ly2",1,69,"/images/ad_100x300.swf");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -