内容管理系统

Mozilla Firefox 2.0
首页 | 新手入门 | 规则政策 | 疑难问答 | 优化技巧 | 网上赚钱 | Google资讯 | 支持论坛
当前位置:主页>优化技巧>文章内容
Google Adsense公益广告的替代方法
来源:www.adsense-labs.com 作者:佚名 发布时间:2007-05-04

1.首先在网站所在空间里建立一个文件夹,名字随便取,比如google。
2.下载google_adsense_script.htm文件,这是Google Adsense在没有合适的广告时,会调用的用户文件,我把代码贴出来:
引用内容:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:/www.w3.org/TR/xhtml1/DTD/xhtm...l.dtd">
<html xmlns="http:/www.w3.org/1999/xhtml"xm...ng="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
<script src="/'>http:/blog.insome.com/main/google/top.js"...t;></script>// 这里你是调用的js文件地址
</head>
<body style="background-color: transparent;">
</body>
</html>

 

3.调用的js文件,我命名为top.js:
引用内容:
document.write("<iframe src=http://blog.insome.com/main/google/top_banner.htm width=468 height=60 align=
left frameborder=no border=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no></iframe>")

 

这里我是用的iframe调用另一个htm文件(top_banner.htm),大家把它换成你自己的文件地址。
4.最关键的了,你自己的广告代码,写在top_banner.htm中:
引用内容:
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<title>ad</title>
<style type='text/css'>
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
</head>
<body>
<script language="javascript" type="text/javascript" src="http:/union.3721.com/ass/adv1_1....ome_122963">
</script> //这里是你自己的广告代码
</body>
</html>

 

5.把以上三个文件修改好后,放到你建立的文件夹中。这里要注意的是,Google Adsense不能跨域调用,比如,你有两个域名,指向不同的空间,那么,这两个空间中就都得放上这三个文件,不同共同调用一处的文件。

6.登陆Google Adsense,在“替代广告网址或颜色“一栏中填上你的google_adsense_script.htm文件路径,保存然后更新你的
google广告代码,把新代码贴到你的网页中,其实也就是多了这么一行


上一篇:google广告的单价与点击-Smart Price   下一篇:Google AdSense容易被K的可能性列表
[收藏] [推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]
用户名: 新注册) 密码: 匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
§最新评论
热点文章
·一名ADSENSE作弊者的经验之谈
·GoogleAdsense的秘密
·Google AdSense收入最大化的几点
·GoogleAdsense作弊不是技术的较
·Google Adsense常用技巧总结
·google adsense[论坛]投放技巧
·Google AdSense 中文高价关键词
·Google AdSense推收益分享新模式
·google AdSense系列技巧100条
·Google Adsense 提示100条
·GOOGLE-ADSENSE每日收入调查
·GoogleAdSense的收入计算方法
相关文章
·google广告的单价与点击-Smart P
·Google AdSense容易被K的可能性
·Google Adwords广告关键词须注意
·揭开Google adsense的神秘面纱
·做Adsense的一些经验
·从Google那赚钱:AdSence令数多
·控制Google关键词市场营销:上下
·用Google adwords赚Google adsen
·揭穿Google关键词广告服务的暴利
·一些Firefox推介“技巧”
·最大限度地提高Google AdSense
·Google Adsense Firefox 推介技
Adsense实验室 版权所有 Copyright © 2006 - 2008