在用Z-blog程序做的博客中,如何在文章中添加广告代码呢,并使其融合在文章中呢?这样的话,广告的点击率也能提高不少哦!告知具体步骤:
当然了,你得先申请到GG广告代码或者阿里妈妈的广告代码或者其他广告联盟的,然后登陆管理后台,找到文件管理→THEMES→default→TEMPLATE→b_article_single.html,编辑b_article_single.html文件中的代码:
<div class="post cate<#article/category/id#> auth<#article/author/id#>">
<div class="post-nav"><#template:article_navbar_l#><#template:article_navbar_r#></div>
<h4 class="post-date"><#article/posttime#></h4>
<h2 class="post-title"><#article/title#></h2>
<div class="post-body">
<DIV style="FLOAT: left; MARGIN:10px 10px 2px 0px">
需要添加的GG广告代码或者阿里妈妈的广告代码或者其他广告联盟的
</div>
<#article/content#></div>
----------------------------
----------------------------------
红色和蓝色部分的代码就是需要添加的的代码,其中蓝色加粗的代码就是需要添加的广告代码,,其中left可以改为right;解释下:MARGIN:10px 10px 2px 0px 表示广告的偏移像素,分别表示上 右 下 左
演示地址:http://www.co120.com/archives/36.html



1楼 hzhjun
Post:2009-10-12 9:42:00
2楼 阅网博客
Post:2010-11-19 18:39:11