网站运营
位置:首页>> 网站运营>> DZ贴内Google AdSense 广告美化技巧

DZ贴内Google AdSense 广告美化技巧

  发布时间:2007-08-15 10:59:00 

标签:DISCUZ,Google,AdSense,广告美化

DISCUZ论坛用的人很多,下面就教你怎么美化贴子里的Google AdSense 广告,先看看效果图:

  当然主要是模板的制作,看你自己的发挥了,或者请个美工搞一个。

 涉及文件两个模版:
  css.htm
  viewthread.htm

  操作方法:
  一、保存以下图片,上传到论坛./images/default/目录

  二、打开css.htm,在文件之末尾加入以下代码

.float { width:250px; height:442px;padding-top:229px;padding-right:35px; background-image:url(../../images/default/aabg.gif);}

  三、打开viewthread.htm,搜索

<a name="pid$post[pid]" href="misc.php?action=viewratings&tid=$tid&pid=$post[pid]" title="{lang rate} $post[rate]">$post[ratings]</a>

替换成

        <!--{if $post[’number’]==1}--> 
         <div style="float: right" align="right"><a name="pid$post[pid]" href="misc.php?action=viewratings&tid=$tid&pid=$post[pid]" title="{lang rate} $post[rate]">$post[ratings]</a><div class="float">
<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXXX";
google_ad_width = 200;
google_ad_height = 200;
google_ad_format = "200x200_as";
google_ad_type = "text";
google_color_border = "EFF7F7";
google_color_bg = "EFF7F7";
google_color_link = "943108";
google_color_text = "EF7B21";
google_color_url = "EFADC5";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
         </div>
        <!--{else}-->
        <a name="pid$post[pid]" href="misc.php?action=viewratings&tid=$tid&pid=$post[pid]" title="{lang rate} $post[rate]">$post[ratings]</a> 
        <!--{/if}-->

  说明:GGAD之格式是200*200之,以上代码是本人之,替换你之client ID即可。。 

相关阅读:

来看看怎么美化你的Google Adsense广告吧

0
投稿

猜你喜欢

手机版 网站运营 asp之家 www.aspxhome.com