第一种是采用iframe+html的方式调用。不管iframe插入在什么地方,加载网页的时候首先是先加载正文内容,然后才加载iframe里的东西。代码如下:
<iframe src="http://www.eryi.org/blog/post/huazonghua-guanggao.html" frameborder=0 width=336 height=280 scrolling=no marginwidth=0 marginheight=0 ></iframe>
先在欲显示广告的地方插入DIV容器1代码,注意容器的id
<div id="ad" width="336" height="280"></div>
<div id="adcode" style="display:none">
广告代码
</div>
<script language="javascript">
if(document.all.item("ad") != null)
{
ad.innerHTML = adcode.innerHTML;
}
</script>
这两种方法都可以用来调用Google Adsense、百度主题推广、阿里联盟或其它广告,通过更改加载顺序使其不影响正文的显示,从而起到了所谓“加速器”的作用。



