Discuz教程网

[代码修改] Discuz X2 首页横排板块增加边框美化

[复制链接]
authicon dly 发表于 2011-5-23 12:49:32 | 显示全部楼层 |阅读模式
截图552.jpg

"template/你的风格/forum/discuz.htm
查找

  1. <tr class="fl_row">
  2. <!--{/if}-->
  3. <!--{/if}-->
  4. <td class="fl_g" width="$cat[forumcolwidth]">
  5. <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  6. <!--{if $forum[icon]}-->
  7. $forum[icon]
  8. <!--{else}-->
复制代码

替换为

  1. <tr class="fl_row">
  2. <!--{/if}-->
  3. <!--{/if}-->
  4. <td class="fl_g" width="$cat[forumcolwidth]" style="padding:10px 5px; ">
  5. <script language="javascript">
  6. function forumbackshow(id){
  7. document.getElementById(id).style.background="#f8f8f8";
  8. }
  9. function forumbackout(id){
  10. document.getElementById(id).style.background="";
  11. }
  12. function showgoto() {
  13. var i, args=showgoto.arguments; document.showgtvlaue = false;
  14. for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
  15. }
  16. </script>
  17. <div id="showback_$forum[fid]" style="border:1px solid #ccc; cursor:default;" onmouseover="forumbackshow('showback_$forum[fid]')" onmouseout="forumbackout('showback_$forum[fid]')" ondblclick="showgoto('parent','https://www.discuz.1314study.com/forum.php?mod=forumdisplay&fid=$forum[fid]');return document.showgtvlaue">
  18. <div style="padding:5px; ">
  19. <style>
  20. .ficodiv {float:left;}
  21. .ficodiv,.ficodiv img{margin-top:2px; margin-right:5px;}
  22. </style>
  23. <div class="ficodiv">
  24. <!--{if $forum[icon]}-->
  25. $forum[icon]
  26. <!--{else}-->
复制代码






上一篇:Discuz!X2.0 一键转播到腾讯微博 修改分享 添加转播新浪微博
下一篇:Discuz X2 QQ互联安全修复补丁
authicon soul2511 发表于 2011-5-23 22:00:00 | 显示全部楼层
喜欢喜欢喜欢
authicon haidideyu 发表于 2011-5-24 15:59:56 | 显示全部楼层
顶顶更健康
authicon 月之海洋 发表于 2011-5-25 06:59:50 | 显示全部楼层
哦哦,发财了啊,看到好东西啦
authicon fantuanzi 发表于 2011-6-17 04:00:17 | 显示全部楼层
好东西要顶的。
authicon forever21 发表于 2011-6-18 13:59:59 | 显示全部楼层
不错,我喜欢
authicon lakelouise 发表于 2011-6-19 08:00:02 | 显示全部楼层
好耶!功能强大啊
authicon 计晨 发表于 2011-6-21 06:00:20 | 显示全部楼层
顶你一下,好贴要顶!
authicon kikiya11 发表于 2011-6-22 01:59:46 | 显示全部楼层
不错,谢谢分享
authicon 陶衣小可 发表于 2011-6-25 15:59:45 | 显示全部楼层
这个要顶起来啊
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 14:22

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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