js/WMP_advert.js
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
try{
WMP.Advert={};
}catch(e){
WMP={Advert:{}};
}
WMP.apply = function(o, c, defaults){
// no "this" reference for friendly out of scope calls
if(defaults){
Ext.apply(o, defaults);
}
if(o && c && typeof c == 'object'){
for(var p in c){
o[p] = c[p];
}
}
return o;
};
/**
var ad=new WMP.Advert.FixedAd({});
*/
WMP.Advert.FixedAd=function(paras){
this.ID='ad_'+parseInt(Math.random()*1000);
this.TYPE="FixedAd";
this.width=0;
this.height=0;
this.content='';
this.renderTo=null;
var self=this;
function build(){
WMP.apply(self,paras);
Box=document.createElement("DIV")
with(Box.style){
width=self.width+"px";
height=self.height+"px";
overflow="hidden";
}
Box.innerHTML=self.content;
if(self.renderTo==null || typeof(self.renderTo)=='undefined'){
//self.renderTo=document.body;
document.writeln(Box.outerHTML);
return;
}else if(typeof(self.renderTo)=='string'){
self.renderTo=document.getElementById(self.renderTo);
}
self.renderTo.appendChild(Box);
}
this.load=function(){
build();
}
}
WMP.Advert.PopAd=function(paras){
后面还有 258 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。