ps教程论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2376|回复: 0
收起左侧

[SEO优化] Google AdSense 贴内广告美化技巧(DISCUZ论坛专用)

[复制链接]
发表于 2007-3-6 11:05:11 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
转载请注明出自落伍im286.com,本贴地址:http://www.im286.com/viewthread.php?tid=1858522
效果图:


演示:http://bbs.jokcn.com

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

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

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

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

三、打开viewthread.htm,搜索

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

替换成

[Copy to clipboard]
CODE:
        <!--{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-0084950867094575";
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即可。。

转载请注明出自落伍im286.com,本贴地址:http://www.im286.com/viewthread.php?tid=1858522
您需要登录后才可以回帖 登录 | 注册

本版积分规则

求建议和反映问题|小黑屋|免责声名|Archiver|photoshop教程论坛 ( 粤ICP备07017357号 )

GMT+8, 2024-6-1 22:00 , Processed in 0.027584 second(s), 10 queries , XCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表