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

📄 adm.js

📁 基于Windows平台的ASP.net框架
💻 JS
📖 第 1 页 / 共 2 页
字号:
			break;
		}
	}
	o.style+="z-index:10;";
	if(!o.leftHref)
		o.leftHref="";
		
	if(!o.rightHref)
		o.rightHref="";
	
	if(isNaN(parseInt(o.offsetX)))
		o.offsetX=30;
	
	if(screen.width<1024)
		o.offsetX+=100;
	
	if(isNaN(parseInt(o.offsetY)))
		o.offsetY=(HasBOOKTURN&&HasCOUPLET)?0:20;
	
		
	if (!o.leftWidth)
		o.leftWidth = 80;
		
	if (!o.rightWidth)
		o.rightWidth = 80;
		
	if (!o.leftHeight)
		o.leftHeight = 80;
				
	if (!o.rightHeight)
		o.rightHeight = 80;
		
		
			
	var s="";
	if(o.leftSrc && o.leftSrc!="")
		s+=ADM_Media(o.leftSrc,o.leftWidth,o.leftHeight,o,ADM_DIV+"left",o.leftHref);
	
	if(o.wmode2)
		o.wmode=o.wmode2;
	
	if(o.style2)
		o.style+=o.style2;
	
	if(o.rightSrc && o.rightSrc!="")
		s+=ADM_Media(o.rightSrc,o.rightWidth,o.rightHeight,o,ADM_DIV+"right",o.rightHref);
		
	if(s!=""){
		WriteAd(ADM_DIV+"FLOAT",s);
		ADM_O1=document.getElementById(ADM_DIV+"left");
		ADM_O2=document.getElementById(ADM_DIV+"right");
		if(ADM_O1!=null||ADM_O2!=null){
			window.setInterval("FLOAT_position("+o.offsetX+","+(parseInt(o.offsetY)+parseInt(o.leftHeight))+"," + o.leftHeight + ")",400);
		}
	}
	o.s=2;
}

function FLOAT_position(a,b,h){
	
	if(ADM_CE==1){
		if(ADM_O1!=null){
			ADM_O1.style.pixelTop=parseInt((parseInt(documentBody.scrollTop) + parseInt(documentBody.clientHeight)-b))
			ADM_O1.style.left=parseInt((parseInt(documentBody.scrollLeft) + a))+"px";
		}
		
		if(ADM_O2!=null){
			ADM_O2.style.top=parseInt((parseInt(documentBody.scrollTop)+parseInt(documentBody.clientHeight)-b))+"px";
			ADM_O2.style.left=parseInt((parseInt(documentBody.scrollLeft) + parseInt(documentBody.clientWidth)-h-a))+"px";
		}
	}
	else{
		if(ADM_O1!=null){
			ADM_O1.style.top=parseInt(0.75*(parseInt(documentBody.scrollTop)+parseInt(documentBody.clientHeight)-b))+"pt";
			ADM_O1.style.left=parseInt(0.75*(parseInt(documentBody.scrollLeft) + a))+"pt";
		}
		
		if(ADM_O2!=null){
			ADM_O2.style.top=parseInt(0.75*(parseInt(documentBody.scrollTop)+parseInt(documentBody.clientHeight)-b))+"pt";
			ADM_O2.style.left=parseInt(0.75*(parseInt(documentBody.scrollLeft) + parseInt(documentBody.clientWidth)-h-a))+"pt";
		}
	}
}

function LIUMEITI_main(o){
	if(ADM_Check(o)){
		o.s=2;
		if(typeof(LIUMEITI_CALL)=="function")
			LIUMEITI_CALL();
		return;
	}
	
	if(!o.width)
		o.width=200;
	
	if(!o.height)
		o.height=150;
	
	if(!o.top)
		o.top="0";
		
	if(!o.left)
		o.left="-0";
	
	if(o.src&&o.src!=""){
		o.style+="top:"+(parseInt(documentBody.scrollTop)+((String(o.top).indexOf("-")==-1)?parseInt(o.top):(parseInt(documentBody.clientHeight)+parseInt(o.top)-o.height)));
		o.style+=";left:"+((String(o.left).indexOf("-")==-1)?parseInt(o.left):(parseInt(documentBody.clientWidth)-o.width+parseInt(o.left)));
		ADM_RESIZE[ADM_RESIZE.length]="document.getElementById('"+ADM_DIV+"lmt').style.left=(('"+o.left+"'.indexOf('-')==-1)?"+o.left+":(parseInt(documentBody.clientWidth)-"+(o.width+parseInt(o.left))+"))";
		WriteAd(ADM_DIV+"LIUMEITI",ADM_Media(o.src,o.width,o.height,o,ADM_DIV+"lmt"));
		if(o.eval&&o.eval!="")
			eval(o.eval);
		
		setTimeout("ADM_Close("+o.i+",'"+ADM_DIV+"lmt')",isNaN(parseInt(o.timeout))?8000:parseInt(o.timeout));
	}
}

function BOOKTURN_main(o){
	self.scroll(0,0);
	if(!o.top)
		o.top="0";
	
	if(!o.left)
		o.left="-0";
	if(!o.loop)
		o.loop=false;
	
	if(!o.loop2)
		o.loop2=true;
	
	if(!o.CookieHour)
		o.CookieHour=1;
		
	if(o.src&&o.srcButton){
		var show=(ADM_Check(o));
		o.style+="z-index:10000;";
		if(show)
			o.style+="visibility:hidden;";
		o.style+="top:"+(parseInt(documentBody.scrollTop)+(String(o.top).indexOf("-")==-1)?parseInt(o.top):(parseInt(documentBody.clientHeight)+parseInt(o.top)-250));
		o.style+=";left:"+((String(o.left).indexOf("-")==-1)?parseInt(o.left):(parseInt(documentBody.clientWidth)-350+parseInt(o.left)));
		var s1=ADM_Media(o.src,350,250,o,ADM_DIV+"book1");
		o.wmode=(o.wmode2)?o.wmode2:"";
		o.style=o.style.substring(0,o.style.lastIndexOf("z-index:10000;"));
		if(!show)
			o.style+="visibility:hidden;";
		o.style+="z-index:11;";
		o.style+="top:"+(parseInt(documentBody.scrollTop)+(String(o.top).indexOf("-")==-1)?parseInt(o.top):(parseInt(documentBody.clientHeight)+parseInt(o.top)-250));
		o.style+=";left:"+((String(o.left).indexOf("-")==-1)?parseInt(o.left):(parseInt(documentBody.clientWidth)-80+parseInt(o.left)));
		s1+=ADM_Media(o.srcButton,80,80,o,ADM_DIV+"book2");
		ADM_RESIZE[ADM_RESIZE.length]="document.getElementById('"+ADM_DIV+"book1').style.left=(('"+o.left+"'.indexOf('-')==-1)?"+o.left+":(parseInt(documentBody.clientWidth)-"+(350+parseInt(o.left))+"))";
		ADM_RESIZE[ADM_RESIZE.length]="document.getElementById('"+ADM_DIV+"book2').style.left=(('"+o.left+"'.indexOf('-')==-1)?"+o.left+":(parseInt(documentBody.clientWidth)-"+(80+parseInt(o.left))+"))";
		s1+=ADM_FSCommand(o,ADM_DIV+"book1");
		s1+=ADM_FSCommand(o,ADM_DIV+"book2");
		WriteAd(ADM_DIV+"book",s1);
		document.getElementById(ADM_DIV).i=o.i;
		if(show)
		o.s=2;
	}
	else 
		o.s=2;
}

function ADAREAbook1_DoFSCommand(commands,args){
	ADM_S[document.getElementById(ADM_DIV).i].s=2;
	document.getElementById(ADM_DIV+"book1").style.visibility='hidden';
	var OBJ=document.getElementById(ADM_DIV+"book2");
	OBJ.style.visibility='visible';OBJ.style.display='block';
}

function ADAREAbook2_DoFSCommand(commands,args){
	document.getElementById(ADM_DIV+"book2").style.visibility='hidden';
	var OBJ=document.getElementById(ADM_DIV+"book1");
	OBJ.style.visibility='visible';
	OBJ.style.display='block';
	OBJ.Play();
}
function COUPLET_main(o){
	if(((ADM_CE==1)&&(screen.width<1000))||((ADM_CE==0)&&(documentBody.scrollWidth<1000))){
		o.s=2;
		return;
	}
	var HasBOOKTURN=false;
	for(CAI=0;CAI<ADM_S.length;CAI++){
		if(ADM_S[CAI].t=="BOOKTURN"){
			HasBOOKTURN=true;
			break;
		}
	}
	
	if(ADM_Check(o)){
		o.s=2;
		return;
	}
	
	if(!o.offsetX)
		o.offsetX=0;
		
	if(!o.offsetY)
		o.offsetY=(HasBOOKTURN)?250:130;
		
		
	if(!o.width)
		o.width=120;
	
	if(!o.height)
		o.height=270;
		
		
	if(!o.width2)
		o.width=120;
	
	if(!o.height2)
		o.height=270;
		
	if(!o.href)
		o.href="";
		
	if(!o.href2)
		o.href2="";
		
				
	if(o.src||o.src2){
		if(!o.src)
			o.src=o.src2;
			
		if(!o.wmode)
			o.wmode="opaque";
		
		if(!o.src2)
			o.src2=o.src;
		
		var UseCache=(o.src.toLowerCase()==o.src2.toLowerCase());
		o.style+="top:"+o.offsetY + "px";
		o.style+=";left:"+(parseInt(documentBody.scrollLeft) + parseInt(o.offsetX)) + "px;";
		var s1=ADM_Media(o.src,o.width,o.height,o,ADM_DIV+"Couplet1",o.href);

		o.style=o.style.substring(0,o.style.lastIndexOf("left:"));
		o.style+="left:"+((parseInt(documentBody.scrollLeft) + parseInt(documentBody.clientWidth)-o.width-o.offsetX )) + "px;";
		if(!UseCache){
			if(o.wmode2)
				o.wmode=o.wmode2;
			s1+=ADM_Media(o.src2,o.width2,o.height2,o,ADM_DIV+"Couplet2",o.href2);
			s1+=ADM_FSCommand(o,ADM_DIV+"Couplet2");
			ADM_RESIZE[ADM_RESIZE.length]="document.getElementById('"+ADM_DIV+"Couplet2').style.left=parseInt(documentBody.scrollLeft) + parseInt(documentBody.clientWidth)-"+(o.width2+o.offsetX);
		}
		else {
			s1+="<div id='"+ADM_DIV+"CoupletCache' style='display:none'>"+o.i+"</div>";
		}

		s1+=ADM_FSCommand(o,ADM_DIV+"Couplet1");


		if(ADM_CE==1&&UseCache){
			s1+="\n<Script language='javascript' for='"+ADM_DIV+"Couplet1' event='OnReadyStateChange(a)'>\n";
			s1+=""+ADM_DIV+"Couplet1_Cache(a);\n";
			s1+="<\/Script>";
		}
		WriteAd(ADM_DIV+"Couplet",s1);
		if(ADM_CE==1&&UseCache&&document.getElementById(ADM_DIV+"Couplet1").PercentLoaded()==100)
			ADAREACouplet1_Cache(4);
		else if(ADM_CE==0&&UseCache)
			ADAREACouplet1_Check();

		if(o.timeout)
			setTimeout("ADAREACouplet1_DoFSCommand()",o.timeout);
			
		window.setInterval("ADAREACouplet_position("+parseInt(o.offsetY)+"," + o.height + ")",400);
	}
	o.s=2;
}

function ADAREACouplet1_Check(){
		if(document.getElementById(ADM_DIV+"Couplet1").PercentLoaded()==100){
			ADAREACouplet1_Cache(4);
			return;
		}
	setTimeout("ADAREACouplet1_Check()",100);
}
function ADAREACouplet1_Cache(a){
	if(a==4){
		var OBJ=document.getElementById(ADM_DIV+"CoupletCache");
		var o=ADM_S[parseInt(OBJ.innerHTML)];
		OBJ.innerHTML=ADM_Media(o.src,o.width,o.height,o,ADM_DIV+"Couplet2",o.href)+ADM_FSCommand(o,ADM_DIV+"Couplet2");
		OBJ.style.display="block";
		if (ADM_CE==1){
			ADM_RESIZE[ADM_RESIZE.length]="document.getElementById('"+ADM_DIV+"Couplet2').style.left=parseInt(documentBody.scrollLeft) + parseInt(documentBody.clientWidth)-"+(o.width*1+o.offsetX);
		}
		else{
			ADM_RESIZE[ADM_RESIZE.length]="document.getElementById('"+ADM_DIV+"Couplet2').style.left=parseInt(parseInt(documentBody.scrollLeft) + parseInt(documentBody.clientWidth)-"+(o.width*1+o.offsetX) + ") + 'px';";
		}
	}
}
function ADAREACouplet1_DoFSCommand(commands,args){
	document.getElementById(ADM_DIV+"Couplet1").style.visibility='hidden';
	document.getElementById(ADM_DIV+"Couplet2").style.visibility='hidden';
}
function ADAREACouplet2_DoFSCommand(commands,args){
	ADAREACouplet1_DoFSCommand(commands,args);
}

function ADAREACouplet_position(b,h){
	if(ADM_CE==1){
		if(document.getElementById(ADM_DIV+"Couplet1")!=null){
			eval("document.getElementById('"+ADM_DIV+"Couplet1').style.top=parseInt(documentBody.scrollTop) + "+ b + ";");
		}
		
		if(document.getElementById(ADM_DIV+"Couplet2")!=null){
			eval("document.getElementById('"+ADM_DIV+"Couplet2').style.top=parseInt(documentBody.scrollTop) + "+ b + ";");
		}
	}
	else{
		if(document.getElementById(ADM_DIV+"Couplet1")!=null){
			eval("document.getElementById('"+ADM_DIV+"Couplet1').style.top=parseInt(0.75*(parseInt(documentBody.scrollTop) + "+ b + ")) + 'pt';");
		}
		
		if(document.getElementById(ADM_DIV+"Couplet2")!=null){
			eval("document.getElementById('"+ADM_DIV+"Couplet2').style.top=parseInt(0.75*(parseInt(documentBody.scrollTop) + "+ b + ")) + 'pt';");
		}
	}
}

⌨️ 快捷键说明

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