网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 站长之家 > Google推广
本月文章推荐
.付款流程中的电话确认.
.面向搜索引擎的广告模式.
.GoogleAdSense违规行为集锦.
.Google旧瓶装新酒 用遗弃技术开发.
.关键词的运用技巧.
.Google AdSense全面解析.
.Google AdSense已正式支持西联快.
.Google Adsense的菜鸟常识.
.Google PageRank 技术解密 3.
.关于西联汇款 注意事项及细节.
.搜索引擎从入门到精通.
.Google开始清理显示网址和访问网.
.Google推“我的搜索历史”测试版.
.Google Rank.
.Google员工揭密防止网站作弊技术.
.使用Google Adwords关键词广告须.
.月入千美金不是梦--AdSense高收入.
.最大限度地提高Google AdSense 收.
.关于google adsense的几个敏感问.
.面对Google Adsense的质疑将越来.

Google Adsense公益广告的替代方法

发表日期:2007-7-22


1.首先在网站所在空间里建立一个文件夹,名字随便取,比如google。
2.下载google_adsense_script.htm文件,这是Google Adsense在没有合适的广告时,会调用的用户文件,我把代码贴出来:
引用内容:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"html1 DTD xhtm...l.dtd?>html1/DTD/xhtm...l.dtd" target=_blank>http://www.w3.org/TR/xhtml1/DTD/xhtm...l.dtd">
<html xmlns="html?xm...ng="en'">html" target=_blank>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="html" class="wordstyle">javascript" type="text/html" class="wordstyle">javascript" src="http://union.jz123.cn/ass/adv1_1....ome_122963">
</script> //这里是你自己的广告代码
</body>
</html>


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

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

上一篇:被Google Adsense 除名后怎么办 人气:1418
下一篇:三个月内通过Adsense赚一百万美金 人气:1552
浏览全部Google Adsense的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐