adbanner.js
复制代码 代码如下:
<!-- AD rotator script written entirely in JavaScript -->
<!-- Written by WenWei, 2002/03/03. E-mail: wenwei#blueidea.com -->
<!-- ASP 2 JS Written by 小荷, 2003/05/28. E-mail: aston314#sohu.com -->
<!-- Member Of Blueidea Web Team. -->
<!-- Welcome to www.blueidea.com. -->
document.write('<script type="text/javascript" src="/UploadFiles/2021-04-02/flashobject.js">function runCode() //定义一个运行代码的函数,
{
if(1 == arguments.length)
try{event = arguments[0];}catch(e){}
var code=(event.target || event.srcElement).parentNode.childNodes[0].value;//即要运行的代码。
var newwin=window.open('','',''); //打开一个窗口并赋给变量newwin。
newwin.opener = null // 防止代码对论谈页面修改
newwin.document.write(code); //向这个打开的窗口中写入代码code,这样就实现了运行代码功能。
newwin.document.close();
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}
// AD Banner object
function ADBanner(){
this.htmlcode = "";// Non image banner's html code
this.href = "";// Link's href attrib
this.imgsrc = "";// Image's src attrib
this.imgwidth = "";// Image's width attrib
this.imgheight = "";// Image's height attrib
this.imgalt = "";// Image's alt attrib
this.imgborder = "";// Image's border attrib
this.weight = 1;// Banner's show weight
this.place = 1// Banner's place
this.type = 1;// Banner's type
this.id = 0;// Banner's ID
}
// Make Banner objects array
function CreatBanners(aBanners, aNum){
for( var i=0; i<aNum; i++ ){
aBanners[i] = new ADBanner();
}
}
// Show banner
function showbanner(aPlace, aType, aBannerID)
{
var amount = ADBanners.length;
var includeList = new Array(amount);
if (!document.usedBanners){
document.usedBanners = new Array(amount);
for (var i=0; i<amount; i++)
document.usedBanners[i] = -1;
}
var usedList = document.usedBanners;
if (arguments.length == 2){
var j = 0;
var sum = 0;
for(var i=0; i<amount; i++){
if (ADBanners[i].place == aPlace && ADBanners[i].type == aType){
if (usedList[i] != i){
includeList[j] = i;
j++;
sum = sum + ADBanners[i].weight;
}
}
}
if (sum <= 0)
return;
var rndNum = Math.round(Math.random() * sum);
i = 0;
j = 0;
while (true) {
j = j + ADBanners[includeList[i]].weight;
if (j >= rndNum)
break;
i++;
}
i = includeList[i];
}
else{
if (aBannerID >= 0 && aBannerID < amount)
i = aBannerID;
else
return;
}
usedList[i] = i;
if (ADBanners[i].htmlcode == "")
document.write('<A HREF="'+ ADBanners[i].href +'" target=_blank><IMG SRC="'+ ADBanners[i].imgsrc +'" WIDTH="'+ ADBanners[i].imgwidth +'" HEIGHT="'+ ADBanners[i].imgheight +'" ALT="'+ ADBanners[i].imgalt +'" BORDER="'+ ADBanners[i].imgborder +'"></A>');
else
document.write(ADBanners[i].htmlcode);
document.write('<script src=/common/jsbanner/redirect.asp?action=visit&id='+ADBanners[i].id+' ></s'+'cript>')
}
var ADBanners = new Array();
CreatBanners(ADBanners, 7);
ADBanners[0].htmlcode = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="533" height="104"><param name=movie value="http://gg.blueidea.com/2005/www/533-104.swf"><PARAM NAME=wmode VALUE=opaque><param name=quality value=autolow><embed src="/UploadFiles/2021-04-02/533-104.swf">ADBanners[0].weight = 10;
ADBanners[0].place= 2;
ADBanners[0].type = 2;
ADBanners[0].id = 38;
ADBanners[1].imgsrc = "http://gg.blueidea.com/2006/chinaok/208x32.gif";
ADBanners[1].href = "http://www.chinaok.net.cn";
ADBanners[1].imgwidth = "208";
ADBanners[1].imgheight = "32";
ADBanners[1].imgalt = "建站、改版、推广,找欧科动力";
ADBanners[1].weight = 10;
ADBanners[1].place= 4;
ADBanners[1].type = 4;
ADBanners[1].id = 42;
ADBanners[2].htmlcode = '<script type="text/javascript">google_ad_client = "pub-5841412030047197";google_alternate_color = "CCCCD4";google_ad_width = 728;google_ad_height = 90;google_ad_format = "728x90_as";google_ad_channel ="7977407778";google_ad_type = "text_image";google_color_border = "6699CC";google_color_bg = "003366";google_color_link = "FFFFFF";google_color_url = "AECCEB";google_color_text = "AECCEB";</script><script type="text/javascript" src="/UploadFiles/2021-04-02/show_ads.js">ADBanners[2].weight = 20;
ADBanners[2].place= 6;
ADBanners[2].type = 6;
ADBanners[2].id = 46;
ADBanners[3].imgsrc = "http://gg.blueidea.com/2006/chinaok/468x60.gif";
ADBanners[3].href = "http://www.chinaok.net.cn";
ADBanners[3].imgwidth = "468";
ADBanners[3].imgheight = "60";
ADBanners[3].imgalt = "建站、改版、推广,找欧科动力";
ADBanners[3].weight = 30;
ADBanners[3].place= 5;
ADBanners[3].type = 5;
ADBanners[3].id = 56;
ADBanners[4].imgsrc = "http://gg.blueidea.com/2006/now/208x32.gif";
ADBanners[4].href = "http://www.now.cn";
ADBanners[4].imgwidth = "208";
ADBanners[4].imgheight = "32";
ADBanners[4].imgalt = "域名免费试用";
ADBanners[4].weight = 20;
ADBanners[4].place= 4;
ADBanners[4].type = 4;
ADBanners[4].id = 41;
ADBanners[5].htmlcode = '<script type="text/javascript">google_ad_client = "pub-5841412030047197";google_ad_width = 728;google_ad_height = 90;google_alternate_ad_url = "http://www.blueidea.com/js/google_adsense_script.html";google_ad_format = "728x90_as";google_ad_channel ="7977407778";google_ad_type = "text_image";google_color_border = "6699CC";google_color_bg = "003366";google_color_link = "FFFFFF";google_color_url = "AECCEB";google_color_text = "AECCEB";</script><script type="text/javascript" src="/UploadFiles/2021-04-02/show_ads.js">ADBanners[5].weight = 10;
ADBanners[5].place= 1;
ADBanners[5].type = 1;
ADBanners[5].id = 29;
ADBanners[6].htmlcode = '<table border="0" align="center" cellpadding="0" cellspacing="0" height="40" bgcolor="#FFFFFF"><tr><td><a href=http://www.blueidea.com/game/site/2006gongyi target=_blank><img src=http://gg.blueidea.com/2006/gongyi/banner.jpg border=0></a></td><td width="6"></td><td><a href=http://www.feloo.com/special/youhui/ target=_blank><img src=http://gg.blueidea.com/2006/feloo/380_40.jpg border=0></a></td></tr></table>';
ADBanners[6].weight = 10;
ADBanners[6].place= 9;
ADBanners[6].type = 6;
ADBanners[6].id = 57;
调用方法:
复制代码 代码如下:
<SCRIPT language=JavaScript>showbanner(1,1);</SCRIPT>
<SCRIPT language=JavaScript>showbanner(6,6);</SCRIPT>
复制代码 代码如下:
<!-- AD rotator script written entirely in JavaScript -->
<!-- Written by WenWei, 2002/03/03. E-mail: wenwei#blueidea.com -->
<!-- ASP 2 JS Written by 小荷, 2003/05/28. E-mail: aston314#sohu.com -->
<!-- Member Of Blueidea Web Team. -->
<!-- Welcome to www.blueidea.com. -->
document.write('<script type="text/javascript" src="/UploadFiles/2021-04-02/flashobject.js">function runCode() //定义一个运行代码的函数,
{
if(1 == arguments.length)
try{event = arguments[0];}catch(e){}
var code=(event.target || event.srcElement).parentNode.childNodes[0].value;//即要运行的代码。
var newwin=window.open('','',''); //打开一个窗口并赋给变量newwin。
newwin.opener = null // 防止代码对论谈页面修改
newwin.document.write(code); //向这个打开的窗口中写入代码code,这样就实现了运行代码功能。
newwin.document.close();
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}
// AD Banner object
function ADBanner(){
this.htmlcode = "";// Non image banner's html code
this.href = "";// Link's href attrib
this.imgsrc = "";// Image's src attrib
this.imgwidth = "";// Image's width attrib
this.imgheight = "";// Image's height attrib
this.imgalt = "";// Image's alt attrib
this.imgborder = "";// Image's border attrib
this.weight = 1;// Banner's show weight
this.place = 1// Banner's place
this.type = 1;// Banner's type
this.id = 0;// Banner's ID
}
// Make Banner objects array
function CreatBanners(aBanners, aNum){
for( var i=0; i<aNum; i++ ){
aBanners[i] = new ADBanner();
}
}
// Show banner
function showbanner(aPlace, aType, aBannerID)
{
var amount = ADBanners.length;
var includeList = new Array(amount);
if (!document.usedBanners){
document.usedBanners = new Array(amount);
for (var i=0; i<amount; i++)
document.usedBanners[i] = -1;
}
var usedList = document.usedBanners;
if (arguments.length == 2){
var j = 0;
var sum = 0;
for(var i=0; i<amount; i++){
if (ADBanners[i].place == aPlace && ADBanners[i].type == aType){
if (usedList[i] != i){
includeList[j] = i;
j++;
sum = sum + ADBanners[i].weight;
}
}
}
if (sum <= 0)
return;
var rndNum = Math.round(Math.random() * sum);
i = 0;
j = 0;
while (true) {
j = j + ADBanners[includeList[i]].weight;
if (j >= rndNum)
break;
i++;
}
i = includeList[i];
}
else{
if (aBannerID >= 0 && aBannerID < amount)
i = aBannerID;
else
return;
}
usedList[i] = i;
if (ADBanners[i].htmlcode == "")
document.write('<A HREF="'+ ADBanners[i].href +'" target=_blank><IMG SRC="'+ ADBanners[i].imgsrc +'" WIDTH="'+ ADBanners[i].imgwidth +'" HEIGHT="'+ ADBanners[i].imgheight +'" ALT="'+ ADBanners[i].imgalt +'" BORDER="'+ ADBanners[i].imgborder +'"></A>');
else
document.write(ADBanners[i].htmlcode);
document.write('<script src=/common/jsbanner/redirect.asp?action=visit&id='+ADBanners[i].id+' ></s'+'cript>')
}
var ADBanners = new Array();
CreatBanners(ADBanners, 7);
ADBanners[0].htmlcode = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="533" height="104"><param name=movie value="http://gg.blueidea.com/2005/www/533-104.swf"><PARAM NAME=wmode VALUE=opaque><param name=quality value=autolow><embed src="/UploadFiles/2021-04-02/533-104.swf">ADBanners[0].weight = 10;
ADBanners[0].place= 2;
ADBanners[0].type = 2;
ADBanners[0].id = 38;
ADBanners[1].imgsrc = "http://gg.blueidea.com/2006/chinaok/208x32.gif";
ADBanners[1].href = "http://www.chinaok.net.cn";
ADBanners[1].imgwidth = "208";
ADBanners[1].imgheight = "32";
ADBanners[1].imgalt = "建站、改版、推广,找欧科动力";
ADBanners[1].weight = 10;
ADBanners[1].place= 4;
ADBanners[1].type = 4;
ADBanners[1].id = 42;
ADBanners[2].htmlcode = '<script type="text/javascript">google_ad_client = "pub-5841412030047197";google_alternate_color = "CCCCD4";google_ad_width = 728;google_ad_height = 90;google_ad_format = "728x90_as";google_ad_channel ="7977407778";google_ad_type = "text_image";google_color_border = "6699CC";google_color_bg = "003366";google_color_link = "FFFFFF";google_color_url = "AECCEB";google_color_text = "AECCEB";</script><script type="text/javascript" src="/UploadFiles/2021-04-02/show_ads.js">ADBanners[2].weight = 20;
ADBanners[2].place= 6;
ADBanners[2].type = 6;
ADBanners[2].id = 46;
ADBanners[3].imgsrc = "http://gg.blueidea.com/2006/chinaok/468x60.gif";
ADBanners[3].href = "http://www.chinaok.net.cn";
ADBanners[3].imgwidth = "468";
ADBanners[3].imgheight = "60";
ADBanners[3].imgalt = "建站、改版、推广,找欧科动力";
ADBanners[3].weight = 30;
ADBanners[3].place= 5;
ADBanners[3].type = 5;
ADBanners[3].id = 56;
ADBanners[4].imgsrc = "http://gg.blueidea.com/2006/now/208x32.gif";
ADBanners[4].href = "http://www.now.cn";
ADBanners[4].imgwidth = "208";
ADBanners[4].imgheight = "32";
ADBanners[4].imgalt = "域名免费试用";
ADBanners[4].weight = 20;
ADBanners[4].place= 4;
ADBanners[4].type = 4;
ADBanners[4].id = 41;
ADBanners[5].htmlcode = '<script type="text/javascript">google_ad_client = "pub-5841412030047197";google_ad_width = 728;google_ad_height = 90;google_alternate_ad_url = "http://www.blueidea.com/js/google_adsense_script.html";google_ad_format = "728x90_as";google_ad_channel ="7977407778";google_ad_type = "text_image";google_color_border = "6699CC";google_color_bg = "003366";google_color_link = "FFFFFF";google_color_url = "AECCEB";google_color_text = "AECCEB";</script><script type="text/javascript" src="/UploadFiles/2021-04-02/show_ads.js">ADBanners[5].weight = 10;
ADBanners[5].place= 1;
ADBanners[5].type = 1;
ADBanners[5].id = 29;
ADBanners[6].htmlcode = '<table border="0" align="center" cellpadding="0" cellspacing="0" height="40" bgcolor="#FFFFFF"><tr><td><a href=http://www.blueidea.com/game/site/2006gongyi target=_blank><img src=http://gg.blueidea.com/2006/gongyi/banner.jpg border=0></a></td><td width="6"></td><td><a href=http://www.feloo.com/special/youhui/ target=_blank><img src=http://gg.blueidea.com/2006/feloo/380_40.jpg border=0></a></td></tr></table>';
ADBanners[6].weight = 10;
ADBanners[6].place= 9;
ADBanners[6].type = 6;
ADBanners[6].id = 57;
调用方法:
复制代码 代码如下:
<SCRIPT language=JavaScript>showbanner(1,1);</SCRIPT>
<SCRIPT language=JavaScript>showbanner(6,6);</SCRIPT>
华山资源网 Design By www.eoogi.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
华山资源网 Design By www.eoogi.com
暂无评论...
《魔兽世界》大逃杀!60人新游玩模式《强袭风暴》3月21日上线
暴雪近日发布了《魔兽世界》10.2.6 更新内容,新游玩模式《强袭风暴》即将于3月21 日在亚服上线,届时玩家将前往阿拉希高地展开一场 60 人大逃杀对战。
艾泽拉斯的冒险者已经征服了艾泽拉斯的大地及遥远的彼岸。他们在对抗世界上最致命的敌人时展现出过人的手腕,并且成功阻止终结宇宙等级的威胁。当他们在为即将于《魔兽世界》资料片《地心之战》中来袭的萨拉塔斯势力做战斗准备时,他们还需要在熟悉的阿拉希高地面对一个全新的敌人──那就是彼此。在《巨龙崛起》10.2.6 更新的《强袭风暴》中,玩家将会进入一个全新的海盗主题大逃杀式限时活动,其中包含极高的风险和史诗级的奖励。
《强袭风暴》不是普通的战场,作为一个独立于主游戏之外的活动,玩家可以用大逃杀的风格来体验《魔兽世界》,不分职业、不分装备(除了你在赛局中捡到的),光是技巧和战略的强弱之分就能决定出谁才是能坚持到最后的赢家。本次活动将会开放单人和双人模式,玩家在加入海盗主题的预赛大厅区域前,可以从强袭风暴角色画面新增好友。游玩游戏将可以累计名望轨迹,《巨龙崛起》和《魔兽世界:巫妖王之怒 经典版》的玩家都可以获得奖励。
更新日志
2024年11月17日
2024年11月17日
- 【雨果唱片】中国管弦乐《鹿回头》WAV
- APM亚流新世代《一起冒险》[FLAC/分轨][106.77MB]
- 崔健《飞狗》律冻文化[WAV+CUE][1.1G]
- 罗志祥《舞状元 (Explicit)》[320K/MP3][66.77MB]
- 尤雅.1997-幽雅精粹2CD【南方】【WAV+CUE】
- 张惠妹.2007-STAR(引进版)【EMI百代】【WAV+CUE】
- 群星.2008-LOVE情歌集VOL.8【正东】【WAV+CUE】
- 罗志祥《舞状元 (Explicit)》[FLAC/分轨][360.76MB]
- Tank《我不伟大,至少我能改变我。》[320K/MP3][160.41MB]
- Tank《我不伟大,至少我能改变我。》[FLAC/分轨][236.89MB]
- CD圣经推荐-夏韶声《谙2》SACD-ISO
- 钟镇涛-《百分百钟镇涛》首批限量版SACD-ISO
- 群星《继续微笑致敬许冠杰》[低速原抓WAV+CUE]
- 潘秀琼.2003-国语难忘金曲珍藏集【皇星全音】【WAV+CUE】
- 林东松.1997-2039玫瑰事件【宝丽金】【WAV+CUE】