广告联盟网

 找回密码
 注册
查看: 618|回复: 4
打印 上一主题 下一主题

GG的广告可以随着屏幕的增加而扩大?

[复制链接]
跳转到指定楼层
1#
发表于 2007-7-5 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
这家伙的代码很特别,不像国内大站的代码.但是他的广告格式是可以随着屏幕的增大而增大.MIN-WIDTH是728PX,如果是窗口大些的话.广告之间的间隙也会随之比例增加.<br /><br />说明下.这是国外一网站上发现的代码.<br><br><div class="msgbody"><div class="msgheader"><div class="right"><a href="###" class="smalltxt" onclick="copycode($('code0'));">[Copy to clipboard]</a> <a class="smalltxt" href="###" onclick="toggle_collapse('code0');">[ <span id="code0_symbol">-</span> ]</a></div>CODE:</div><div class="msgborder" id="code0">&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--<br />g_adcounts = new Object;<br />g_adcounts['top_ad'] = new Object;<br />g_adcounts['top_ad']['c'] = 3;<br />g_adcounts['top_ad']['t'] = 'banner';<br /><br />//--&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot;<br />&nbsp;&nbsp;src=&quot;/js/adformatter.js&quot;&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot;&gt;&lt;!--<br />// Final configuration work:<br />var count = 0;<br />for (var ad in g_adcounts) {<br />&nbsp; &nbsp; if ($(ad)) {<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;count += g_adcounts[ad][&quot;c&quot;];<br />&nbsp; &nbsp; } else {<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;delete g_adcounts[ad];<br />&nbsp; &nbsp; }<br />}<br />google_ad_client = &quot;pub-7489042062340760&quot;;<br />saved_output = google_ad_output = &quot;js&quot;;<br />saved_type = google_ad_type = &quot;text&quot;;<br />saved_channel = google_ad_channel;<br />google_language = &quot;en&quot;;<br />if (typeof(google_kw) != &quot;undefined&quot;) {<br />&nbsp; &nbsp; saved_kw_type = google_kw_type;<br />&nbsp; &nbsp; saved_kw = google_kw;<br />}<br />adstage = 1;<br />fullads = new Array();<br />// First time, request 1<br />google_max_num_ads = count ? 1 : 0;<br />//--&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot;<br />&nbsp;&nbsp;src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot;&gt;&lt;!--<br />// Figure out how many we need now<br />google_max_num_ads = count - 1;<br />google_max_num_ads = google_max_num_ads &gt; 0 ? google_max_num_ads : 0;<br />adstage = 2;<br />google_bid = &quot;CPC&quot;;<br />google_ad_output = saved_output;<br />google_ad_type = saved_type;<br />google_ad_channel = saved_channel;<br />google_language = &quot;en&quot;;<br />if (typeof(saved_kw) != &quot;undefined&quot;) {<br />&nbsp; &nbsp; google_kw_type = saved_kw_type;<br />&nbsp; &nbsp; google_kw = saved_kw;<br />}<br />//--&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot;<br />&nbsp;&nbsp;src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;&lt;/script&gt;</div></div><br>是不是太神奇了!在国内应该还看不到有这种效果吧!<br /><br /><img src="http://bbs.ggcms.com/attachments/20070705_148dcb3bc39f1f2de5728EBYIrhOG3Va.bmp" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs.ggcms.com/attachments/20070705_148dcb3bc39f1f2de5728EBYIrhOG3Va.bmp');}" onmousewheel="return imgzoom(this);" alt="" /><br /><br /><img src="http://bbs.ggcms.com/attachments/20070705_2f21c02d2808977c8b9alJQuPXVm8af1.bmp" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs.ggcms.com/attachments/20070705_2f21c02d2808977c8b9alJQuPXVm8af1.bmp');}" onmousewheel="return imgzoom(this);" alt="" />
2#
发表于 2007-7-5 | 只看该作者
不知道这样GG允许不?
3#
 楼主| 发表于 2007-7-5 | 只看该作者
点击上面那张图可以看得更完整些!
4#
发表于 2007-7-5 | 只看该作者
不敢用,怕作弊
5#
发表于 2007-7-5 | 只看该作者
他是不是大客户?是的话正常,不是的话就只能被K了<br />sina的就与我们的不一样
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|广告联盟网  

GMT, 2024-11-30 , Processed in 0.060160 second(s), 19 queries .

Powered by Discuz! X3.2

© 2005-2021 www.ggads.com GGADS 广告联盟网

快速回复 返回顶部 返回列表