找回密码
 注册
查看: 1902|回复: 2
收起左侧

[分享] 贴内标题句中加粗加大美化,并显示本文来自、阅读数量、收藏等按钮

[复制链接]

5314

主题

8320

帖子

1万

积分

管理员

出售国内外虚拟空间

Rank: 10Rank: 10Rank: 10

积分
14665
帖子
8320
精华
67
体力
14665 点
蓝豆
2391 点
注册时间
2007-6-8

终身成就奖LY官方团队会员身份ID卡

发表于 2010-3-8 13:40:28 | 显示全部楼层 |阅读模式
安装方法:
打开viewthread_node.htm文件,找到:
  1. <h1>$thread[subject]</h1>
复制代码
替换成:
  1. <h2 align="center" class="title"><font style="font-size:22px;line-height:120%;background:#E8F3FD">$post[subject]</font></h2>
  2. <div align="center">
  3. 本文来自:  <a href="http://www.lanyudongli.com" target="_blank"><font color="red">蓝雨动力</font></a>  作者: <font color="red">$post[author]</font>  日期: $post[dateline]  阅读: <font color="red"><span class="smalltxt">{echo $thread[views]+1}</span></font> 人
  4. <a href="viewthread.php?action=printabletid=$tid" target="_blank" <!--{if !$forum['ismoderator']}-->class="notabs"<!--{/if}-->>{lang thread_printable}</a>
  5. <a href="javascript:bookmark()" title="加入收藏夹">收藏</a>  
  6. <script type="text/javascript">
  7. // <![CDATA[
  8. function bookmark(){
  9. var title=document.title
  10. var url=document.location.href
  11. if (window.sidebar) window.sidebar.addPanel(title, url,"");
  12. else if( window.opera & window.print ){
  13. var mbm = document.createElement('a');
  14. mbm.setAttribute('rel','sidebar');
  15. mbm.setAttribute('href',url);
  16. mbm.setAttribute('title',title);
  17. mbm.click();}
  18. else if( document.all ) window.external.AddFavorite( url, title);
  19. }
  20. // ]]>
  21. </script>
  22. </div>
复制代码
出售国内或美国高性能虚拟空间,高速VPS以及服务器! 同时承接各种类型的网站制作,网站维护,支付宝交易安全放心!    联系QQ:6102031
懒得打字嘛,点击右侧快捷回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

网站公告上一条 /2 下一条

GMT+8, 2024-5-20 05:07 , Processed in 0.109375 second(s), 24 queries , Gzip On.

© 2006-2022 Powered by Discuz! X3.4

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