📄 admanage.js
字号:
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)+80)+")",400);
}
}
o.s=2;
}
function FLOAT_position(a,b)
{
if(ADM_O1!=null)
{
ADM_O1.style.top=parseInt(0.75*(parseInt(document.body.scrollTop)+parseInt(document.body.clientHeight)-b))+"pt";
ADM_O1.style.left=parseInt(0.75*(parseInt(document.body.scrollLeft)+a))+"pt";
}
if(ADM_O2!=null)
{
ADM_O2.style.top=parseInt(0.75*(parseInt(document.body.scrollTop)+parseInt(document.body.clientHeight)-b))+"pt";
ADM_O2.style.left=parseInt(0.75*(parseInt(document.body.scrollLeft)+parseInt(document.body.clientWidth)-80-a))+"pt";
}
}
function LIUMEITI_main(o)
{
if(ADM_Check(o))
{
o.s=2;
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(document.body.scrollTop)+((String(o.top).indexOf("-")==-1)?parseInt(o.top):(parseInt(document.body.clientHeight)+parseInt(o.top)-o.height)));
o.style+=";left:"+((String(o.left).indexOf("-")==-1)?parseInt(o.left):(parseInt(document.body.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(document.body.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))?7000: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(document.body.scrollTop)+(String(o.top).indexOf("-")==-1)?parseInt(o.top):(parseInt(document.body.clientHeight)+parseInt(o.top)-250));
o.style+=";left:"+((String(o.left).indexOf("-")==-1)?parseInt(o.left):(parseInt(document.body.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(document.body.scrollTop)+(String(o.top).indexOf("-")==-1)?parseInt(o.top):(parseInt(document.body.clientHeight)+parseInt(o.top)-250));
o.style+=";left:"+((String(o.left).indexOf("-")==-1)?parseInt(o.left):(parseInt(document.body.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(document.body.clientWidth)-"+(350+parseInt(o.left))+"))";
ADM_RESIZE[ADM_RESIZE.length]="document.getElementById('"+ADM_DIV+"book2').style.left=(('"+o.left+"'.indexOf('-')==-1)?"+o.left+":(parseInt(document.body.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)&&(document.body.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:100;
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;
o.style+=";left:"+(parseInt(document.body.scrollLeft)+o.offsetX);
var s1=ADM_Media(o.src,120,270,o,ADM_DIV+"Couplet1");
o.style=o.style.substring(0,o.style.lastIndexOf("left:"));
o.style+="left:"+((parseInt(document.body.scrollLeft)+parseInt(document.body.clientWidth)-120-o.offsetX ));
if(!UseCache)
{
if(o.wmode2)
o.wmode=o.wmode2;
s1+=ADM_Media(o.src2,120,270,o,ADM_DIV+"Couplet2");
s1+=ADM_FSCommand(o,ADM_DIV+"Couplet2");
ADM_RESIZE[ADM_RESIZE.length]="document.getElementById('"+ADM_DIV+"Couplet2').style.left=parseInt(document.body.scrollLeft)+parseInt(document.body.clientWidth)-"+(120+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);
}
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,120,270,o,ADM_DIV+"Couplet2")+ADM_FSCommand(o,ADM_DIV+"Couplet2");
OBJ.style.display="block";
ADM_RESIZE[ADM_RESIZE.length]="document.getElementById('"+ADM_DIV+"Couplet2').style.left=parseInt(document.body.scrollLeft)+parseInt(document.body.clientWidth)-"+(120+o.offsetX);
}
}
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 VIDEO_main(o)
{
if(ADM_CE!=1 ||(ADM_Check(o)))
{
o.s=2;
return;
}
if(!o.codebase)
o.codebase="http://videoad.sohu.com/video/videoadserver16/version1024/mcadplayer.cab";
if(!o.adpicurl)
o.adpicurl="http://videoad.sohu.com/video/videoadserver16/back.jpg";
if(!o.title)
o.title="SUPERCAST";
if(!o.cx)
o.cx=350;
if(!o.cy)
o.cy=280;
if(!o.popx)
o.popx=screen.width-o.cx+1;
if(!o.popy)
o.popy=screen.height-o.cy-25;
if(!o.billserver)
o.billserver="61.135.145.33";
if(!o.loop)
o.loop=-1;
if(!o.soundtime)
o.soundtime=1;
if(!o.mode)
o.mode=1;
if(!o.buttonmode)
o.buttonmode=2;
if(!o.slidemode)
o.slidemode=2;
if(!o.timeout)
o.timeout=7000;
if(!o.playcount)
o.playcount=2;
if(!o.wmppopx)
o.wmppopx=screen.width-350;
if(!o.hideafterplayover)
o.hideafterplayover=0;
if(!o.wmppopy)
o.wmppopy=screen.height;
if(!o.popuphtmurl)
o.popuphtmurl="http://videoad.sohu.com/video/videoadserver16/brimilk1/popuphtm1.htm";
if(o.divxadurl&&o.divxadurl!="")
{
if(ADM_GetCookie("VIDEO")!=null)
VIDEO_media(o.i);
else VIDEO_code(o);
}
o.s=2;
}
function VIDEO_code(o)
{
var s="<OBJECT classid='clsid:2D0C7226-747E-11D6-83F0-00E04C4A2F90' codebase='"+o.codebase+"' onerror='VIDEO_media("+o.i+")' style='width:0px;height:0px'><param name='adurl' value='"+o.divxadurl+"'><param name='adpicurl' value='"+o.adpicurl+"'><param name='clickurl' value='"+o.adclickurl+"'><param name='cx' value='"+o.cx+"'><param name='cy' value='"+o.cy+"'><param name='popx' value='"+o.popx+"'>";
s+="<param name='popy' value='"+o.popy+"'><param name='billserver' value='"+o.billserver+"'><param name='loop' value='"+o.loop+"'><param name='soundtime' value='"+o.soundtime+"'><param name='mode' value='"+o.mode+"'><param name='buttonmode' value='"+o.buttonmode+"'><param name='hideafterplayover' value='"+o.hideafterplayover+"'><param name='windowtitle' value='"+o.title+"'><param name='SlideMode' value='"+o.slidemode+"'></OBJECT>";
WriteAd(ADM_DIV+"Video",s);
}
function VIDEO_media(o)
{
if(ADM_GetCookie("VIDEO")==null)
{
var Now=new Date();
Now.setTime(Now.getTime()+(o.plugindelay?parseFloat(o.plugindelay)*60*60*1000:7*24*60*60*1000));
ADM_SetCookie("VIDEO","videodelay",Now);
}
o=ADM_S[o];
if(o.wmvadurl&&o.wmvadurl!="")
{
var s=o.popuphtmurl+"?OpenerName="+window.location+"&wmvadurl="+o.wmvadurl+"&adpicurl="+o.adpicurl+"&adclickurl="+o.adclickurl+"&timeout="+o.timeout+"&soundtime="+o.soundtime+"&playcount="+o.playcount+"&windowtitle="+o.title;
if(o.download)
s+="&download="+o.download+"&";
window.open(s,"","left="+o.wmppopx+",top="+o.wmppopy+", width=350, height=250");
}
}
function IMVIDEO_main(o)
{
if((ADM_Check(o)))
{
o.s=2;
return;
}
if(!o.IMWidth)
o.IMWidth=350;
if(!o.IMHeight)
o.IMHeight=250;
if(!o.Str)
o.Str="IM";
if(o.VideoID>0)
{
var width=o.IMWidth;
var height=o.IMHeight+26;
var left=screen.availWidth-width-10;
var top=screen.availHeight;
var popUrl="http://im.imchina.com.cn/client/client.aspx?id="+o.VideoID+ "&url="+"http://im.imchina.com.cn/cgi-bin/adgate.cgi" + "&width="+o.IMWidth + "&height="+o.IMHeight;
var params="left="+left+",top="+top+",width="+width+",height="+height+",scrollbars=0,resizable=0,toolbar=0,location=0,menubar=0,status=0,directories=0,dependent=0,titlebar=0";
var winid=o.Str+o.VideoID;
window.open(popUrl, winid, params);
}
o.s=2;
}
setTimeout("ADM_PUSH()",2000);
//--------------------------------
function adfloatload(o,w,h)
{
o.style.top=document.body.scrollTop+document.body.offsetHeight-h-10;
o.style.right=10;
// o.style.right=w-10;
// window.setInterval("adfloatactivate("+o+","+w+","+h+");", 400);
}
function adfloatactivate(o,w,h)
{
o.style.top=document.body.scrollTop+document.body.offsetHeight-h-10;
o.style.right=w-10;
setTimeout("adfloatactivate();",400)
}
function adfloatloadleft(o,w,h)
{
o.style.top=document.body.scrollTop+document.body.offsetHeight-h-10;
o.style.left=10;
// window.setInterval("adfloatactivateleft("+o+","+w+","+h+");", 400);
}
function adfloatactivateleft(o,w,h)
{
o.style.top=document.body.scrollTop+document.body.offsetHeight-h-10;
o.style.left=10;
setTimeout("adfloatactivateleft();",400)
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -