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即可。。
相关阅读:
0
投稿
猜你喜欢
- 北京时间11月9日消息,据国外媒体报道,消息人士周日透露,美国移动运营商Sprint Nextel(以下简称Sprint)及其合作伙伴计划至
- DNS分为Client和Server,Client扮演发问的角色,也就是问 Server 一个Domain Name,而Server必须要回
- 一、什么是组策略(一)组策略有什么用?说到组策略,就不得不提注册表。注册表是Windows系统中保存系统、应用软件配置的数据库,随着Wind
- 什么是POSH ?不,这不是一些新的网页设计上的时尚的宣传- POSH是Plain Old Semantic HTML(清晰老式语义化HTM
- 有时在博客评论和论坛里看到有朋友说我们写的SEO技巧不够具体,感觉无从下手,这样的问题经常让分享技巧的人也有点无奈,不知道该具体到什么程度。
- 如果你的服务器apache还没有安装,那很简单,在编译apache时将mod_rewrite模块编译进去就可以,相关文档可以在http://
- Mac使用Shell(终端)SSH连接远程服务器前提:要有你需要连接的服务器的ip,端口号,服务器上的账户和密码1、首先打开终端,然后输入s
- PR劫持应该大家都知道什么意思(不知道什么意思这个文章也就没必要看了),今天遇到一个网友说网站PR6,而首页才PR3,感觉有问题,就查看了一
- 两年前,我曾经写过一篇文章《Google和百度收录网站页面的比较》(发布于2006年4月17日《计算机世界》),分析当时情况下百度和Goog
- 1、网站主题和关键词 一般来说你的网站建立好关键词和主题内容就已经确定, 可以和他们匹配的广告就相对比较稳定。除非你是综合性站点, 那样可以
- 全球最大的域名交易平台Sedo,今天透露chinese.com的成交价为110万美元。位居该平台2007年最贵的几个域名之一。chinese
- 竞争深度的构成1。网站年龄2。关键词扁平化程度3。域名4。内链5。外链6。更新速率7。关键词搜索量在以上的主要因素中,网站的年龄起着至关重要
- 良好的内链通过增加内链提高搜索引擎排名。例如,写一篇有价值的文章,在其中的关键词上标注一个指向你的网站的链接可以促进网站排名。简洁明了的标题
- 我们的防火墙是不是经常有人来攻击你XXX端口呢?如果关掉相应没有用处的端口不就好了吗? 一般来说,我们采用一些功能强大的反黑软件和防火墙来保
- 前些日子曾经写过一篇博文《加速WordPress 》,完全用手工来调整,加速我们的WordPress,html代码层次加速WordPress
- 1.Apache Rewrite的主要功能 就是实现URL的跳转和隐藏真实地址,基于Perl语言的正则表达式规范。平时帮助我们实现拟静态,拟
- 今天的文章中我们为大家介绍的是有关活动目录的一个全新功能:可重启活动目录(Restartable Active Directory),这一功
- 网址规范化一直是困扰站长以及搜索引擎的一个问题。据估计,网上有10%-30%的URL是内容相同但URL不一样的不规范化网址。这就造成几个问题
- 有很多发布商在询问什么时候自己的账户才可以使用广告查看中心,我们现在很高兴地通知大家,这个功能已经向所有发布商开放了!通过广告查看中心,您可
- 地方门户网站,除了广告还能靠什么盈利?作为一个商业 * 来说,虽说下沙网已拥有了坚实的群众基础,点击率颇高,但即使是这样的人气,也要时刻做好