Discuz教程网

【Discuz 7.X】[dly]帖子内容页美化

[复制链接]
精华
authicon dly 发表于 2010-10-20 13:53:07 | 显示全部楼层 |阅读模式
资源名称:[dly]帖子内容页美化
适用版本:Discuz!7.X(其他版本同理可改)
语言编码:GBK(其他编码同理可改)
插件作者:原作者不详,dly改进。。。
原帖地址:https://www.discuz.1314study.com/thread-502-1-1.html
资源简介:帖子内容美化插件,含多套风格。
友情提示:需修改文件,修改前请备份。本作品未经版权所有者授权请勿二次转载!


其他版本地址:https://www.discuz.1314study.com/thread-494-1-1.html

打开模板文件 viewthread_node.htm
查找


  1. <table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_$post[pid]">$post[message]</td></tr></table>
复制代码

替换成:
  1. <table cellspacing=0 cellpadding=0 border=0 >
  2. <tr >
  3. <td width=14><img height=8 src=images/plus/top_l.gif width=14/></td>
  4. <td width:=auto background=images/plus/top_c.gif></td>
  5. <td width=16><img height=8 src=images/plus/top_r.gif width=16/></td>
  6. </tr>
  7. <tr>
  8. <td valign=top width=14 background=images/plus/center_l.gif></td>
  9. <td bgColor=#fffff1> <div id="postmessage_$post[pid]" class="t_msgfont">$post[message]</div> </td>
  10. <td valign=top width=16 background=images/plus/center_r.gif></td>
  11. </tr>
  12. <tr>
  13. <td vAlign=top width=14><img height=42 src=images/plus/foot_l1.gif width=14/></td>
  14. <td background=images/plus/foot_c.gif><img height=42 src=images/plus/foot_l3.gif width=36/></td>
  15. <td align=right width=16><img height=42 src=images/plus/foot_r.gif width=16/></td>
  16. </tr>
  17. </table>
  18. <SCRIPT language="JavaScript">
  19. <!--
  20. today=new Date();
  21. jran=today.getTime();
  22. function rnd() {
  23. ia=9301;
  24. ic=49297;
  25. im=233280;
  26. jran = (jran*ia+ic) % im;
  27. return jran/(im*1.0);
  28. };
  29. function rand(number) {
  30. return Math.ceil(rnd()*number);
  31. };
  32. document.write("<div>");
  33. for(i=1;i<=1;i++) {
  34. myNum=(rand(10)); //改成你要随机显示的图片数;

  35. if(myNum == 1) document.write("<img src='images/plus/face1.gif'>");

  36. if(myNum == 2) document.write("<img src='images/plus/face2.gif'>"); //图片路径,可用http://

  37. if(myNum == 3) document.write("<img src='images/plus/face3.gif'>");

  38. if(myNum == 4) document.write("<img src='images/plus/face4.gif'>");

  39. if(myNum == 5) document.write("<img src='images/plus/face5.gif'>");

  40. if(myNum == 6) document.write("<img src='images/plus/face6.gif'>");

  41. if(myNum == 7) document.write("<img src='images/plus/face7.gif'>");

  42. if(myNum == 8) document.write("<img src='images/plus/face8.gif'>");

  43. if(myNum == 9) document.write("<img src='images/plus/face9.gif'>");

  44. if(myNum == 10) document.write("<img src='images/plus/face10.gif'>");

  45. else {
  46. document.write();
  47. }
  48. };
  49. document.write(" $post[author]说:</div>");
  50. //-->
  51. </SCRIPT>
  52. <br>
复制代码

再上传图片到相应目录


三套图片风格下载:

风格一:
电信本地下载地址1
电信本地下载地址2
电信本地下载地址3
网通本地下载地址1
网通本地下载地址2

风格二:
电信本地下载地址1
电信本地下载地址2
电信本地下载地址3
网通本地下载地址1
网通本地下载地址2

风格三:
电信本地下载地址1
电信本地下载地址2
电信本地下载地址3
网通本地下载地址1
网通本地下载地址2






上一篇:关于【Discuz X1/1.5】[dly]帖子内容页美化
下一篇:你相信每个人随便都可以成功立业吗?
authicon 浅蓝色季节 发表于 2011-2-18 15:20:42 | 显示全部楼层
楼主太厉害了!楼主,I*老*虎*U!我觉得1314学习网真是个好地方!
authicon test 发表于 2011-2-21 10:58:58 | 显示全部楼层
这个帖子不回对不起自己!我想我是一天也不能离开1314学习网
authicon 数控压力机 发表于 2011-2-28 14:13:34 | 显示全部楼层
authicon shakesxia 发表于 2011-5-7 08:59:51 | 显示全部楼层
楼主真强大
authicon cutiemimi 发表于 2011-5-10 16:59:50 | 显示全部楼层
回贴下载呀
authicon 蓝天blue 发表于 2011-5-16 18:59:55 | 显示全部楼层
看帖必回
authicon icenna 发表于 2011-5-23 09:59:50 | 显示全部楼层
哈哈,支持了
authicon 21585151 发表于 2011-5-23 10:59:39 | 显示全部楼层
顶的就是你
authicon summmer 发表于 2011-5-23 17:59:56 | 显示全部楼层
好耶!功能强大啊
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 16:16

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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