- A+
所属分类:网站建设
用了一段时间百度联盟了,发现标签广告的单点价格普遍偏高,前几天在糯米汇博客看到他将QQ邮箱订阅放置到了正文,并且和百度标签广告结合在一起,感觉非常不错!
于是我也弄了个差不多的,结果侧边栏和正文都是标签广告,而且经常还是展示相同的内容!然而我的主题侧边栏又太窄了,并不适合其他广告!真是恼火。。。
只好变着花样试着在各种地方放置标签广告。换来换去,最终又回到了原点——侧边栏!发现折腾真是一个无尽的死循环。。。
最终,我将QQ邮箱订阅和百度联盟标签广告结合在一起,放置到了侧边栏,感觉还比较和谐,就来分享下,喜欢的可以去折腾试试。
下面是完整代码:
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"> <!--value值为QQ邮箱订阅id,请修改成自己的--> <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行百度广告代码为自己的标签广告代码;
③、将以上代码放置到博客侧边栏,你想要展示的位置即可;
④、颜色之类的请自行调整,就不啰嗦了。
- 我的微信
- 这是我的微信扫一扫
-
- 我的微信公众号
- 我的微信公众号扫一扫
-