免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
Board logo

標題: [分享] 叫你如何美化论坛 [打印本頁]

作者: 小潼    時間: 2013-7-25 23:06     標題: 叫你如何美化论坛

本帖最後由 小潼 於 2013-7-26 15:10 編輯

1,代码如下
  1. <h1 class="fr"><SCRIPT language=javascript>
  2. <!--
  3. BirthDay=new Date("November 29,2011");
  4. today=new Date();
  5. timeold=(today.getTime()-BirthDay.getTime());
  6. sectimeold=timeold/1000
  7. secondsold=Math.floor(sectimeold);
  8. msPerDay=24*60*60*1000
  9. e_daysold=timeold/msPerDay
  10. daysold=Math.floor(e_daysold);
  11. document.write("<b>水悠悠社区 - 自2011年11月29日 至今已有<font color=red>"+daysold+"</font>天!</b>");
  12. //-->
  13. </SCRIPT></h1>
複製代碼
这是最为简单化的,
最终效果图
360截图20130725225728156.jpg

还有更加完善的如下:
2.代码如下

首先在网站跟目录的模版找到版权文件。名为footer.htm 文件。

一般路径是/template/default/common/中

用记事本编辑,给以下代码换上去即可。图片位置自行替换。代码如下

自己的信息修改替换即可。记住尊重版权不要修改掉dz信息。
  1. </div>
  2. <!--{if empty($topic) || ($topic[usefooter])}-->
  3. <!--{eval $focusid = getfocus_rand($_G[basescript]);}-->
  4. <!--{if $focusid !== null}-->
  5. <!--{eval $focus = $_G['cache']['focus']['data'][$focusid];}-->
  6. <div class="focus" id="sitefocus">
  7. <div class="bm">
  8. <div class="bm_h cl">
  9. <a href="javascript:;" onclick="setcookie('nofocus_$focusid', 1, $_G['cache']['focus']['cookie']*3600);$('sitefocus').style.display='none'" class="y" title="{lang close}">{lang close}</a>
  10. <h2><!--{if $_G['cache']['focus']['title']}-->{$_G['cache']['focus']['title']}<!--{else}-->{lang focus_hottopics}<!--{/if}--></h2>
  11. </div>
  12. <div class="bm_c">
  13. <dl class="xld cl bbda">
  14. <dt><a href="{$focus['url']}" class="xi2" target="_blank">$focus['subject']</a></dt>
  15. <!--{if $focus[image]}-->
  16. <dd class="m"><a href="{$focus['url']}" target="_blank"><img src="{$focus['image']}" alt="$focus['subject']" /></a></dd>
  17. <!--{/if}-->
  18. <dd>$focus['summary']</dd>
  19. </dl>
  20. <p class="ptn hm"><a href="{$focus['url']}" class="xi2" target="_blank">{lang focus_show} &raquo;</a></p>
  21. </div>
  22. </div>
  23. </div>
  24. <!--{/if}-->

  25. <!--{ad/footerbanner/wp a_f/1}--><!--{ad/footerbanner/wp a_f/2}--><!--{ad/footerbanner/wp a_f/3}-->
  26. <!--{ad/float/a_fl/1}--><!--{ad/float/a_fr/2}-->
  27. <!--{ad/couplebanner/a_fl a_cb/1}--><!--{ad/couplebanner/a_fr a_cb/2}-->
  28. <!--{ad/cornerbanner/a_cn}-->

  29. <!--{hook/global_footer}-->
  30. <div id="ft" class="wp cl">
  31. <div id="flk" class="y">
  32. <table width="960" border="0" cellspacing="0" cellpadding="0">
  33. <tr>
  34. <td height="30" align="center"> <!--{loop $_G['setting']['footernavs'] $nav}--><!--{if $nav['available'] && ($nav['type'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1)) ||
  35. !$nav['type'] && ($nav['id'] == 'stat' && $_G['group']['allowstatdata'] || $nav['id'] == 'report' && $_G['uid'] || $nav['id'] == 'archiver' || $nav['id'] == 'mobile'))}--><!--{if $nav['id'] == 'mobile' && $_G['setting']['mobile']['allowmobile'] != 1}--><!--{eval continue;}--><!--{/if}-->$nav[code]<span class="pipe">|</span><!--{/if}--><!--{/loop}--><!--{hook/global_footerlink}-->
  36. <!--{if $_G['setting']['statcode']}-->$_G['setting']['statcode']<!--{/if}-->

  37. <font

  38. color="#6495ed"><div

  39. align='center'>本站提供网上自由讨论使用,所有个人言论并不代表本站立场,本站不负任何责任.如发现有侵权行为,请与我们联系.
  40. <div
  41. align='center'></left><divalign='center'> 我们将立刻从网站上删除,并向所有持版权者致最深歉意.</left><div
  42. <font color=black>本站法人代表: <b><font color=lightgray>半月</font></b> QQ:<font

  43. color=black>270226203</font> E-mail:<font

  44. color=black><a href="mailto:banyue52@syouy.com">banyue52@syouy.com</a></font></font></br>

  45. <img src="http://www.syouy.com/images/yxzz.jpg" alt="我们一直在努力成为最好的社区论坛"><div
  46. <h1 class="fr"><SCRIPT language=javascript>
  47. <!--
  48. BirthDay=new Date("November 29,2011");
  49. today=new Date();
  50. timeold=(today.getTime()-BirthDay.getTime());
  51. sectimeold=timeold/1000
  52. secondsold=Math.floor(sectimeold);
  53. msPerDay=24*60*60*1000
  54. e_daysold=timeold/msPerDay
  55. daysold=Math.floor(e_daysold);
  56. document.write("<b>水悠悠社区 - 自2011年11月29日 至今已有<font color=red>"+daysold+"</font>天!</b>");
  57. //-->
  58. </SCRIPT></h1>
  59. <tr>
  60. <td height="20" align="center">信息产业部备案/许可证编号:No filing information!<!--{if $_G['setting']['icp']}--> <a  target="_blank">$_G['setting']['icp']</a><!--{/if}--> <a href="http://www.discuz.net/" target="_blank">Discuz!</a> 技术支持,Copyright&copy; 2011-2012 All Right Reserved. </td>
  61. </tr>
  62. <tr>
  63. <td height="60" align="center" valign="middle"><table width="500" border="0" cellpadding="0" cellspacing="0">
  64. <tr>
  65. <td align="center"><table width="120" height="50" border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
  66. <tr>
  67. <td align="center" valign="middle"><a href="#" target="_blank"><img src="http://www.syouy.com/images/D1.gif" width="118" height="48" border="0"></a></td>
  68. </tr>
  69. </table></td>
  70. <td align="center"><table width="120" height="50" border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
  71. <tr>
  72. <td align="center" valign="middle"><a href="#" target="_blank"><img src="http://www.syouy.com/images/D2.gif" width="118" height="48" border="0"></a></td>
  73. </tr>
  74. </table></td>
  75. <td align="center"><table width="120" height="50" border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
  76. <tr>
  77. <td align="center" valign="middle"><a href="#" target="_blank"><img src="http://www.syouy.com/images/D3.gif" width="118" height="48" border="0"></a></td>
  78. </tr>
  79. </table></td>
  80. <td align="center"><table width="120" height="50" border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
  81. <tr>
  82. <td align="center" valign="middle"><a href="#" target="_blank"><img src="http://www.syouy.com/images/D4.gif" width="118" height="48" border="0"></a></td>
  83. </tr>
  84. </table></td>
  85. <td align="center"><table width="120" height="50" border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
  86. <tr>
  87. <td align="center" valign="middle"><a href="#" target="_blank"><img src="http://www.syouy.com/images/D5.gif" width="118" height="48" border="0"></a></td>
  88. </tr>
  89. </table></td>
  90. <td align="center"><table width="120" height="50" border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
  91. <tr>
  92. <td align="center" valign="middle"><a href="#" target="_blank"><img src="http://www.syouy.com/images/D6.gif" width="118" height="48" border="0"></a></td>
  93. </tr>
  94. </table></td>
  95. </tr>
  96. </table> </td>
  97. </tr>
  98. </table>
  99. </div>
  100. <!--{eval updatesession();}-->
  101. <!--{if $_G['uid'] && $_G['group']['allowinvisible']}-->
  102. <script type="text/javascript">
  103. var invisiblestatus = '<!--{if $_G['session']['invisible']}-->{lang login_invisible_mode}<!--{else}-->{lang login_normal_mode}<!--{/if}-->';
  104. $('loginstatusid').innerHTML = invisiblestatus;
  105. <!--{/if}-->
  106. </script>
  107. </div>

  108. <!--{if $upgradecredit !== false}-->
  109. <div id="g_upmine_menu" class="tip tip_3" style="display:none;">
  110. <div class="tip_c">
  111. {lang credits} $_G[member][credits], {lang thread_groupupgrade} $upgradecredit {lang credits}
  112. </div>
  113. <div class="tip_horn"></div>
  114. </div>
  115. <!--{/if}-->
  116. <!--{/if}-->

  117. <!--{if !$_G['setting']['bbclosed']}-->
  118. <!--{if $_G[uid] && !isset($_G['cookie']['checkpm'])}-->
  119. <script type="text/javascript" src="home.php?mod=spacecp&ac=pm&op=checknewpm&rand=$_G[timestamp]"></script>
  120. <!--{/if}-->

  121. <!--{if !isset($_G['cookie']['sendmail'])}-->
  122. <script type="text/javascript" src="home.php?mod=misc&ac=sendmail&rand=$_G[timestamp]"></script>
  123. <!--{/if}-->
  124. <!--{/if}-->

  125. <!--{if $_GET['diy'] == 'yes'}-->
  126. <!--{if (CURMODULE == 'topic' || $_G['group']['allowdiy']) && (empty($do) || $do != 'index') && !empty($_G['style']['tplfile'])}-->
  127. <script type="text/javascript" src="{$_G[setting][jspath]}common_diy.js?{VERHASH}"></script>
  128. <script type="text/javascript" src="{$_G[setting][jspath]}portal_diy.js?{VERHASH}"></script>
  129. <!--{/if}-->
  130. <!--{if $space['self'] && CURMODULE == 'space' && $do == 'index'}-->
  131. <script type="text/javascript" src="{$_G[setting][jspath]}common_diy.js?{VERHASH}"></script>
  132. <script type="text/javascript" src="{$_G[setting][jspath]}space_diy.js?{VERHASH}"></script>
  133. <!--{/if}-->
  134. <!--{/if}-->
  135. <!--{if $_G['member']['newprompt'] && (empty($_G['cookie']['promptstate_'.$_G[uid]]) || $_G['cookie']['promptstate_'.$_G[uid]] != $_G['member']['newprompt']) && $_G['gp_do'] != 'notice'}-->
  136. <script type="text/javascript">noticeTitle();</script>
  137. <!--{/if}-->

  138. <!--{eval userappprompt();}-->
  139. <span id="scrolltop" onclick="window.scrollTo('0','0')">{lang scrolltop}</span>
  140. <script type="text/javascript">_attachEvent(window, 'scroll', function(){showTopLink();});</script>
  141. <!--{eval output();}-->
  142. </body>
  143. </html>
複製代碼
最终效果
152309z8k9s1pkrlclrqgr.jpg

将代码插于首页第三方,具体的只针对简单的那代码

如我的效果图

360截图20130725233404828.jpg



ps:今天看的 不知道这网站有木有人分享了,有的话就直接帮我处理掉该贴吧,我觉得蛮好的这代码,大家可以试试,按着自己想要的来,其余不要

圖片附件: 360截图20130725225728156.jpg (2013-7-25 23:00, 6.41 KB) / 下載次數 1778
http://258club.com/discuz/attachment.php?aid=21717&k=33370183f661fb78301f3066f6ee62b2&t=1732352472&sid=au8G8a



圖片附件: 152309z8k9s1pkrlclrqgr.jpg (2013-7-25 23:05, 53.84 KB) / 下載次數 1719
http://258club.com/discuz/attachment.php?aid=21718&k=8bc807860cf8ec350b409d5bcb3d5f01&t=1732352472&sid=au8G8a



圖片附件: 360截图20130725233404828.jpg (2013-7-25 23:37, 10.76 KB) / 下載次數 1744
http://258club.com/discuz/attachment.php?aid=21719&k=fb58396e701619b8edd8c4a064b8b01b&t=1732352472&sid=au8G8a


作者: superman1024    時間: 2013-7-26 01:02

感謝樓主提供此代碼,感恩
作者: pigeon    時間: 2013-7-26 07:14

感谢分享。。
作者: 达人小G    時間: 2013-7-26 09:04

还8错,谢谢分享
作者: 章鱼    時間: 2013-7-26 12:58

代码是不错,但是建议把标题改一改...不然别人都不知道这贴是讲什么的.还有分享代码的话,帖子分类最好标为"分享"而不是"教学"
作者: 秋本-树怜    時間: 2013-7-27 11:19

还不错 但是觉得不美观   O(∩_∩)O~
作者: 有机兔子    時間: 2014-1-22 09:54

感谢分享




歡迎光臨 SCLUB免費論壇申請-使用者論壇 (http://258club.com/discuz/) Powered by Discuz! 7.2