Home > Web Front-end > JS Tutorial > Multiple ad serving codes recommended_advertising code

Multiple ad serving codes recommended_advertising code

WBOY
Release: 2016-05-16 19:24:18
Original
1462 people have browsed it
adbanner.js
Copy code The code is as follows:





document.write('';
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  = '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";

';
ADBanners[5].weight    = 10;
ADBanners[5].place= 1;
ADBanners[5].type = 1;
ADBanners[5].id = 29;

ADBanners[6].htmlcode  = '';
ADBanners[6].weight    = 10;
ADBanners[6].place= 9;
ADBanners[6].type = 6;
ADBanners[6].id = 57;

调用方法:
复制代码 代码如下:

showbanner(1,1);
showbanner(6,6);
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template