📄 8.js
字号:
function ObjectAD() {
/* Define Variables*/
this.ADID = 0;
this.ADType = 0;
this.ADName = "";
this.ImgUrl = "";
this.ImgWidth = 0;
this.ImgHeight = 0;
this.FlashWmode = 0;
this.LinkUrl = "";
this.LinkTarget = 0;
this.LinkAlt = "";
this.Priority = 0;
this.CountView = 0;
this.CountClick = 0;
this.InstallDir = "";
this.ADDIR = "";
}
function CodeZoneAD(_id) {
/* Define Common Variables*/
this.ID = _id;
this.ZoneID = 0;
/* Define Unique Variables*/
/* Define Objects */
this.AllAD = new Array();
this.ShowAD = null;
/* Define Functions */
this.AddAD = CodeZoneAD_AddAD;
this.GetShowAD = CodeZoneAD_GetShowAD;
this.Show = CodeZoneAD_Show;
}
function CodeZoneAD_AddAD(_AD) {
this.AllAD[this.AllAD.length] = _AD;
}
function CodeZoneAD_GetShowAD() {
if (this.ShowType > 1) {
this.ShowAD = this.AllAD[0];
return;
}
var num = this.AllAD.length;
var sum = 0;
for (var i = 0; i < num; i++) {
sum = sum + this.AllAD[i].Priority;
}
if (sum <= 0) {return ;}
var rndNum = Math.random() * sum;
i = 0;
j = 0;
while (true) {
j = j + this.AllAD[i].Priority;
if (j >= rndNum) {break;}
i++;
}
this.ShowAD = this.AllAD[i];
}
function CodeZoneAD_Show() {
if (!this.AllAD) {
return;
} else {
this.GetShowAD();
}
if (this.ShowAD == null) return false;
document.write(this.ShowAD.ADIntro);
}
var ZoneAD_8 = new CodeZoneAD("ZoneAD_8");
ZoneAD_8.ZoneID = 8;
ZoneAD_8.ZoneWidth = 0;
ZoneAD_8.ZoneHeight = 0;
ZoneAD_8.ShowType = 1;
var objAD = new ObjectAD();
objAD.ADID = 9;
objAD.ADType = 4;
objAD.ADName = "163相册随动对联";
objAD.ImgUrl = "";
objAD.ImgWidth = 0;
objAD.ImgHeight = 0;
objAD.FlashWmode = 0;
objAD.ADIntro = "<script language=javascript>function close163news(){searchspe.style.visibility=\'hidden\';searchspe2.style.visibility=\'hidden\';} var specialcode=\"<DIV id=searchspe style=\'Z-INDEX: 100; right: 1px; POSITION: absolute; TOP: 30px;\'><TABLE cellSpacing=0 cellPadding=0 width=150 style=\'font-size:12px;color:#ffffff\'><TR bgcolor=#C54A00><TD height=20> 推荐↓</TD><TD style=\'CURSOR: hand\' onclick=\'close163news()\' width=30>关 闭</TD></TR></TABLE><iframe WIDTH=150 HEIGHT=400 align=center MARGINWIDTH=0 Name=union163com MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no src=http://news2.163.com/product/photo/tpl5.jsp?ID=sowise&NO=26192&productid=0422></iframe></DIV>\";document.write(specialcode);lastScrollX=0;function heartBeat0(){diffY=document.body.scrollTop;percent=.1*(diffY-lastScrollX);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);document.all.searchspe.style.pixelTop+=percent;lastScrollX=lastScrollX+percent;}window.setInterval(\"heartBeat0()\",1);var specialcode2=\"<DIV id=searchspe2 style=\'Z-INDEX: 100; left: 1px; POSITION: absolute; TOP: 30px;\'><TABLE cellSpacing=0 cellPadding=0 width=150 style=\'font-size:12px;color:#ffffff\'><TR bgcolor=#12BDFF><TD height=20> 推荐↓</TD><TD style=\'CURSOR: hand\' onclick=\'close163news()\' width=30>关 闭</TD></TR></TABLE><iframe WIDTH=150 HEIGHT=400 align=center MARGINWIDTH=0 Name=union163com MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no src=http://news2.163.com/product/photo/tpl5.jsp?ID=sowise&NO=26192&productid=0422></iframe></DIV>\";document.write(specialcode2);lastScrollY=0;function heartBeat1(){diffY=document.body.scrollTop;percent=.1*(diffY-lastScrollY);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);document.all.searchspe2.style.pixelTop+=percent;lastScrollY=lastScrollY+percent;}window.setInterval(\"heartBeat1()\",1);</script>";
objAD.LinkUrl = "";
objAD.LinkTarget = 1;
objAD.LinkAlt = "";
objAD.Priority = 9;
objAD.CountView = 1;
objAD.CountClick = 0;
objAD.InstallDir = "/";
ZoneAD_8.AddAD(objAD);
var objAD = new ObjectAD();
objAD.ADID = 16;
objAD.ADType = 4;
objAD.ADName = "unionsky100x124对联";
objAD.ImgUrl = "";
objAD.ImgWidth = 0;
objAD.ImgHeight = 0;
objAD.FlashWmode = 0;
objAD.ADIntro = "<SCRIPT LANGUAGE=JavaScript1.1 SRC=\"http://play.unionsky.cn/show/?placeID=8518\"></SCRIPT>";
objAD.LinkUrl = "";
objAD.LinkTarget = 1;
objAD.LinkAlt = "";
objAD.Priority = 10;
objAD.CountView = 1;
objAD.CountClick = 0;
objAD.InstallDir = "/";
ZoneAD_8.AddAD(objAD);
ZoneAD_8.Show();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -