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

📄 liebiaodiyige.js

📁 本人参见电子竞赛的时候搜集和整理的有关电子秤的资料
💻 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       = "";
  this.StartTime   = 0;
  this.EndTime     = 0;
  this.Cid         = "";
}

function CodeZoneAD(_id) {
  /* Define Common Variables*/
  this.ID          = _id;
  this.ZoneID      = 0;

  /* Define Unique Variables*/
  this.Active	   = 1;		
  /* 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) {
  var now = new Date();
  var s = now.getTime();
  var Url=top.window.location.href;
  var cid=GetQueryValue(Url,"cid");
  if(cid=="")cid=0;
  cid = ","+cid+","; 
  s = (s-s%1000)/1000;
  if (this.Active == 1 && s > _AD.StartTime && s < _AD.EndTime && _AD.Cid.indexOf(cid) != -1){
	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;
  if (this.ShowAD.ADType == 1 || this.ShowAD.ADType == 2 || this.ShowAD.ADType == 3 || this.ShowAD.ADType == 5 ){
		if (this.ShowAD.LinkUrl) {
			str = "<a href='" + this.ShowAD.LinkUrl + "' target='" + ((this.ShowAD.LinkTarget == 0) ? "_self" : "_blank") + "' title='" + this.ShowAD.LinkAlt + "'>" + this.ShowAD.ADIntro + "</a>";
		}else{
			str = this.ShowAD.ADIntro;
		}
  } else if (this.ShowAD.ADType == 4 ) {
    str = this.ShowAD.ADIntro ;
  }

  document.write(str);
}

function GetQueryValue(sorStr,panStr){     
  var vStr="";     
  if(sorStr==null || sorStr=="" || panStr==null || panStr=="")return vStr;     
  sorStr = sorStr.toLowerCase();   
  panStr += "=";     
  var itmp=sorStr.indexOf(panStr);     
  if (itmp<0){return vStr;}     
  sorStr = sorStr.substr(itmp+panStr.length);     
  itmp=sorStr.indexOf("&");     
  if (itmp<0){   
	return sorStr;     
  }else{   
	sorStr=sorStr.substr(0,itmp);     
	return sorStr;   
  }     
}
var ZoneAD_11 = new CodeZoneAD("ZoneAD_11");
ZoneAD_11.ZoneID      = 11;
ZoneAD_11.Active      = 0;

var objAD = new ObjectAD();
objAD.ADID           = 16;
objAD.ADType         = 4;
objAD.ADName         = "第一视频";
objAD.ImgUrl         = "";
objAD.ImgWidth       = 100;
objAD.ImgHeight      = 100;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<script type=\"text/javascript\"><!--\ngoogle_ad_client = \"pub-3620819054472333\";\n/* 250x250, 创建于 08-9-6 */\ngoogle_ad_slot = \"4636009991\";\ngoogle_ad_width = 250;\ngoogle_ad_height = 250;\n//-->\n</script>\n<script type=\"text/javascript\"\nsrc=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\n</script>";
objAD.LinkUrl        = "http://";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 0;
objAD.CountClick     = 0;
objAD.InstallDir     = "/";
objAD.ADDIR          = "";
objAD.StartTime      = 1214524800;
objAD.EndTime        = 1246060800;
objAD.Cid			 = ",0,2,51,53,52,6,9,10,11,34,35,36,37,38,14,29,30,31,32,33,15,16,17,18,19,20,21,22,50,23,24,25,26,28,12,13,42,43,45,46,47,40,41,55,56,54,57,";
ZoneAD_11.AddAD(objAD);
ZoneAD_11.Show();

⌨️ 快捷键说明

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