Z-blog文章旁的广告代码添加方法

作者: Zm.King   日期:2010年2月10日 19:50   分类:站长天下    标签: 建站 教程 zblog   

在用Z-blog程序做的博客中,如何在文章中添加广告代码呢,并使其融合在文章中呢?这样的话,广告的点击率也能提高不少哦!

告知具体步骤:


当然了,你得先申请到GG广告代码或者阿里妈妈的广告代码或者其他广告联盟的,然后登陆管理后台,找到文件管理→THEMESdefaultTEMPLATEb_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">

style="text-align: left; line-height: 150%; text-indent: 20pt; margin: 4.65pt 0cm 0pt; mso-para-margin-top: .3gd; mso-char-indent-count: 2.0; mso-pagination: widow-orphan" class="MsoNormal" align="left"><DIV style="FLOAT: left; MARGIN:10px 10px 2px 0px">

需要添加的GG广告代码或者阿里妈妈的广告代码或者其他广告联盟的

</div>


<#article/content#></div>

----------------------------

红色和蓝色部分的代码就是需要添加的的代码,其中蓝色加粗的代码就是需要添加的广告代码,,其中left可以改为right解释下:MARGIN:10px 10px 2px 0px 表示广告的偏移像素,分别表示上右下左

演示地址:http://www.zmking.com

效果如下:

点击查看原图

本文已有评论 0 条,检测到共有 976 人撸过...↓快速评论↓
Leave a Reply: