广告联盟网

标题: GG的广告可以随着屏幕的增加而扩大? [打印本页]

作者: winliuxq    时间: 2007-7-5
标题: GG的广告可以随着屏幕的增加而扩大?
这家伙的代码很特别,不像国内大站的代码.但是他的广告格式是可以随着屏幕的增大而增大.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="" />
作者: jingju    时间: 2007-7-5
不知道这样GG允许不?
作者: winliuxq    时间: 2007-7-5
点击上面那张图可以看得更完整些!
作者: wwyyqq    时间: 2007-7-5
不敢用,怕作弊
作者: mnyzg    时间: 2007-7-5
他是不是大客户?是的话正常,不是的话就只能被K了<br />sina的就与我们的不一样




欢迎光临 广告联盟网 (https://ggads.com/) Powered by Discuz! X3.2