结合百度联盟标签广告,定制一个QQ邮箱订阅

次阅读

用了一段时间百度联盟了,发现标签广告的单点价格普遍偏高,前几天在糯米汇博客看到他将 QQ 邮箱订阅放置到了正文,并且和百度标签广告结合在一起,感觉非常不错!

于是我也弄了个差不多的,结果侧边栏和正文都是标签广告,而且经常还是展示相同的内容!然而我的主题侧边栏又太窄了,并不适合其他广告!真是恼火。

只好变着花样试着在各种地方放置标签广告。换来换去,最终又回到了原点——侧边栏!发现折腾真是一个无尽的死循环。

最终,我将 QQ 邮箱订阅和百度联盟标签广告结合在一起,放置到了侧边栏,感觉还比较和谐,就来分享下,喜欢的可以去折腾试试。

ad1ad2

ad3

下面是完整代码:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
<style type="text/css">
.feed-mail{padding:0px;height:33px;overflow:hidden;}
.feed-mail-input{width:171px;height:20px;line-height:20px;padding:4px;vertical-align:middle;border:rgb(80, 153, 167) 2px solid;font-family: inherit;font-size: inherit;font-weight: inherit;color:#F9F900;background-color:rgb(80, 153, 167);}
.feed-mail-btn{width:45px;height:32px;vertical-align:middle;cursor:pointer;border: #77a0d1 2px solid;color: #FFF;font-family: inherit;font-size: inherit;font-weight: inherit;background: #77a0d1;
</style>
<div class="feed-mail">
<form action="http://list.qq.com/cgi-bin/qf_compose_send" target="_blank" method="post">
<input type="hidden" name="t" value="qf_booked_feedback">

<input type="hidden" name="id" value="b3663724104278a735c2ba50cd0fac468fc9c844d61bd347">
      <input id="to" onmouseover="this.style.backgroundColor='#fff';this.style.color='#737373'" onmouseout="this.style.backgroundColor='rgb(80, 153, 167)';this.style.color='#F9F900'" onfocus="if (this.value == '填写邮箱,订阅精彩...') {this.value = '';}" onblur="if (this.value == '') {this.value = '填写邮箱,订阅精彩...';}" value="填写邮箱,订阅精彩..." name="to" type="text" class="feed-mail-input"><input class="feed-mail-btn" type="submit" value="订阅" onmouseover="this.style.backgroundColor='#fff';this.style.color='#737373'" onmouseout="this.style.backgroundColor='#77a0d1';this.style.color='#fff'">
    </form>
      <div class="clear"></div>
    </div>

<script type="text/javascript">BAIDU_CLB_fillSlot("912208");</script>

使用说明:

①、修改第 10 行 value 值为你的 QQ 邮箱列表的 id 值,申请地址: http://list.qq.com

②、替换第 16 行百度广告代码为自己的标签广告代码;

③、将以上代码放置到博客侧边栏,你想要展示的位置即可;

④、颜色之类的请自行调整,就不啰嗦了。