在你想加入
广告的代码地方加入
复制内容到剪贴板
代码:
<script type="text/javascript" src="Google.js"></script>其中Google.js是要调用的google广告js代码
Google.js可以随便换你想用的名字~
下面搞定自己的广告代码,进入网站
http://www.hao123.com/haoserver/jstohtm.htm
把你的广告代码复制进去,选择html生成js
然后复制代码到记事本
复制转换好的js代码保存,文件名直接用"google.js",
记得加半角双引号
这样记事本就直接保存为js文件了,不需要改扩展名
上传google.js到博客根目录下~~。就OK了
效果可以查看我博客www.imseb.cn
添加广告示例
---
静态页面添加广告
底部广告
在Template文件夹的Article.asp
找到如下代码(大约在第18行):
复制内容到剪贴板
代码:
<div id="logPanel" class="Content-body">
<$ArticleContent$>在其后面添加
复制内容到剪贴板
代码:
<script type="text/javascript" src="Google.js"></script>JS代码示例
复制内容到剪贴板
代码:
document.writeln("<script type=\"text\/javascript\"><!--");
document.writeln("google_ad_client = \"pub-7848981270594431\";");
document.writeln("\/\/468x60, 创建于 07-11-11");
document.writeln("google_ad_slot = \"6581602763\";");
document.writeln("google_ad_width = 468;");
document.writeln("google_ad_height = 60;");
document.writeln("\/\/--><\/script>");
document.writeln("<script type=\"text\/javascript\"");
document.writeln("src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">");
document.writeln("<\/script>")其他广告部位请查看博客其他文章~~
[
本帖最后由 cyy1405 于 2007-11-13 20:52 编辑 ]