随笔-167  评论-65  文章-0  trackbacks-0

现在好多网站都有google 广告,用户每点击一次,都会给绑定的人带来一点点的收入,想实现,自己可以申请一个账户,如果不想要收入,只是想要个广告而已,那么你也可以添加

实现效果:

image

实现方法:

第一副图:把下面代码嵌入到网页中任何位置

<script type="text/javascript"><!--
google_ad_client = "pub-5346508518420769";
/* 728x90, created 2/10/09 */
google_ad_slot = "3505891201";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

 

第二幅图:

<script type="text/javascript"><!--
google_ad_client = "pub-9542337207279496";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
//2007-10-31: Medium Rectangle - 300x250
google_ad_channel = "3544827601";
google_color_border = "dcdcdc";
google_color_bg = "FFFFFF";
google_color_link = "940F04";
google_color_text = "000000";
google_color_url = "48678D";
google_ui_features = "rc:10";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

或者你可以把上面src里的js给下载到本地,只是改下src路劲即可

<script type="text/javascript"><!--
  google_ad_client = "pub-9542337207279496";
  google_ad_width = 300;
  google_ad_height = 250;
  google_ad_format = "300x250_as";
  google_ad_type = "text_image";
  //2007-10-31: Medium Rectangle - 300x250
  google_ad_channel = "3544827601";
  google_color_border = "dcdcdc";
  google_color_bg = "FFFFFF";
  google_color_link = "940F04";
  google_color_text = "000000";
  google_color_url = "48678D";
  google_ui_features = "rc:10";
  //-->
</script>
<script type="text/javascript"
        src="/javascripts/show_ads.js">
</script>

show_ads.js下载:

http://www.namipan.com/d/a73d7ebbcfc7a65fd71d6d4e5108595ed4c7f95357270000



write by feng
posted on 2009-04-29 18:40 fl1429 阅读(671) 评论(0)  编辑  收藏 所属分类: Google

只有注册用户登录后才能发表评论。


网站导航:
 
已访问数:
free counters