在pjblog日志内放置Google AdSense广告
我的博客是动态模式下的:
用修改class下面的cls_article.asp即可。在114行左右找到:
<div id="logPanel" class="Content-body">
在其后面添加如下代码:
程序代码
注:绿色字为你自己的广告代码
看见红色的代码了吗?就是这段代码可以使文章和广告代码融合在一起,
把right改成left就可以把广告放在左边。
好了,在日志内添加广告就是这么简单。
最后不要忘了到后台重新生成日志哦。
希望广大站长一起加入赚美元的行列吧。(转自:http://www.starfox.cn/wowo/article.asp?id=615)
用修改class下面的cls_article.asp即可。在114行左右找到:
<div id="logPanel" class="Content-body">
在其后面添加如下代码:
程序代码 <!-- Google广告代码 -->
<div id="vad" class="paper01" style="float:right;">
<div class="aditem_paper01">
<script type="text/javascript"><!--
google_ad_client = "pub-9147000246483358";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "38B63C";
google_color_text = "000000";
google_color_url = "F2984C";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><!-- Google广告代码 -->
<div id="vad" class="paper01" style="float:right;">
<div class="aditem_paper01">
<script type="text/javascript"><!--
google_ad_client = "pub-9147000246483358";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "38B63C";
google_color_text = "000000";
google_color_url = "F2984C";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><!-- Google广告代码 -->
注:绿色字为你自己的广告代码
看见红色的代码了吗?就是这段代码可以使文章和广告代码融合在一起,
把right改成left就可以把广告放在左边。
好了,在日志内添加广告就是这么简单。
最后不要忘了到后台重新生成日志哦。
希望广大站长一起加入赚美元的行列吧。(转自:http://www.starfox.cn/wowo/article.asp?id=615)


