2006/03/15

Google Adsense官方的加速显示代码的用法!

所谓的Google Adsense官方的加速显示代码,就是下面这段了:
<div id="googlead" width="728" height="90"></div>
<div id="googleadcode" style="display:none">
<script type="text/javascript"><!--
google_ad_client = "pub-7672715537078056"
google_ad_width = 468
google_ad_height = 15
google_ad_format = "468x15_0ads_al"
google_ad_channel =""
google_color_border = "FFFFFF"
google_color_bg = "FFFFFF"
google_color_link = "639A21"
google_color_url = "008000"
google_color_text = "000000"
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<script language="javascript">
if(document.all.item("googlead") != null)
{
googlead.innerHTML = googleadcode.innerHTML
}
</script>
今天在添加Google Adsense的时候页面现实速度明显变慢了,记得以前看过这段代码,就搜索了一下,转载的地方很多,换成自己的Google Adsense官方的加速显示代码代码,拷贝到页面里。速度提升效果不是很明显。又仔细看了看页面的代码,我的Google Adsense是放在页面头部下面的,每次都要等Google Adsense彻底读完才能显示下面的内容。又仔细看了看上面的代码,才发现原来这段代码应该这样用:

把它拆成两部分:

在要显示Google Adsense的地方放置前半段:
<div id="googlead" width="728" height="90"></div>
在页面最后放置后半段:
<div id="googleadcode" style="display:none">
<script type="text/javascript"><!--
google_ad_client = "pub-7672715537078056"
google_ad_width = 468
google_ad_height = 15
google_ad_format = "468x15_0ads_al"
google_ad_channel =""
google_color_border = "FFFFFF"
google_color_bg = "FFFFFF"
google_color_link = "639A21"
google_color_url = "008000"
google_color_text = "000000"
//--></script>
<script type="text/javascript"
src=" http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<script language="javascript">
if(document.all.item("googlead") != null)
{
googlead.innerHTML = googleadcode.innerHTML
}
</script>

搞定!现在的速度飞快~~^_^

11 评论:

Tonya 说...

Well done!
[url=http://mjyqdkdy.com/ibcx/dgvy.html]My homepage[/url] | [url=http://otgaohya.com/dpeb/ntuf.html]Cool site[/url]

Tonya 说...

Well done!
[url=http://mjyqdkdy.com/ibcx/dgvy.html]My homepage[/url] | [url=http://otgaohya.com/dpeb/ntuf.html]Cool site[/url]

Alan 说...

Thank you!
My homepage | Please visit

Diana 说...

Nice site!
http://mjyqdkdy.com/ibcx/dgvy.html | http://xkkntoox.com/ouiv/mqru.html

Maggie 说...

Good design!
[url=http://yoxuwohb.com/glon/lihe.html]My homepage[/url] | [url=http://dddwqppc.com/osch/kpfu.html]Cool site[/url]

Mary 说...

Good design!
My homepage | Please visit

Scott 说...

Thank you!
http://yoxuwohb.com/glon/lihe.html | http://cyrdjuzw.com/dzqy/bqmk.html

Ahmed 说...

Hi, nice site!
valium
[url]http://valium.adapturl.com/index.html[/url]

family 说...

family[url=http://www.family.sales-top.com]family[/url] http://www.family.sales-top.com

wellbutrin side effects 说...

wellbutrin medication [url= http://forum.lixium.fr/cgi-bin/liste.eur?wellbut ] wellbutrin medication [/url]

Vesa Poikaja rvi 说...

wellbutrin side effects [url= http://forum.lixium.fr/cgi-bin/index.eur?mitsu ] wellbutrin medication [/url]

联系方式

本站域名可出售,具体咨询:
admin@xianlu.ren

最新留言

其它博客列表