繁體
|
簡體
Sclub交友聊天~加入聊天室當版主
(檢舉)
分享
新浪微博
QQ空间
人人网
腾讯微博
Facebook
Google+
Plurk
Twitter
Line
標題:
[分享]
叫你如何美化论坛
[打印本頁]
作者:
小潼
時間:
2013-7-25 23:06
標題:
叫你如何美化论坛
本帖最後由 小潼 於 2013-7-26 15:10 編輯
1,代码如下
<h1 class="fr"><SCRIPT language=javascript>
<!--
BirthDay=new Date("November 29,2011");
today=new Date();
timeold=(today.getTime()-BirthDay.getTime());
sectimeold=timeold/1000
secondsold=Math.floor(sectimeold);
msPerDay=24*60*60*1000
e_daysold=timeold/msPerDay
daysold=Math.floor(e_daysold);
document.write("<b>水悠悠社区 - 自2011年11月29日 至今已有<font color=red>"+daysold+"</font>天!</b>");
//-->
</SCRIPT></h1>
複製代碼
这是最为简单化的,
最终效果图
下載
(6.41 KB)
2013-7-25 23:00
还有更加完善的如下:
2.代码如下
首先在网站跟目录的模版找到版权文件。名为footer.htm 文件。
一般路径是/template/default/common/中
用记事本编辑,给以下代码换上去即可。图片位置自行替换。代码如下
自己的信息修改替换即可。记住尊重版权不要修改掉dz信息。
</div>
<!--{if empty($topic) || ($topic[usefooter])}-->
<!--{eval $focusid = getfocus_rand($_G[basescript]);}-->
<!--{if $focusid !== null}-->
<!--{eval $focus = $_G['cache']['focus']['data'][$focusid];}-->
<div class="focus" id="sitefocus">
<div class="bm">
<div class="bm_h cl">
<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>
<h2><!--{if $_G['cache']['focus']['title']}-->{$_G['cache']['focus']['title']}<!--{else}-->{lang focus_hottopics}<!--{/if}--></h2>
</div>
<div class="bm_c">
<dl class="xld cl bbda">
<dt><a href="{$focus['url']}" class="xi2" target="_blank">$focus['subject']</a></dt>
<!--{if $focus[image]}-->
<dd class="m"><a href="{$focus['url']}" target="_blank"><img src="{$focus['image']}" alt="$focus['subject']" /></a></dd>
<!--{/if}-->
<dd>$focus['summary']</dd>
</dl>
<p class="ptn hm"><a href="{$focus['url']}" class="xi2" target="_blank">{lang focus_show} »</a></p>
</div>
</div>
</div>
<!--{/if}-->
<!--{ad/footerbanner/wp a_f/1}--><!--{ad/footerbanner/wp a_f/2}--><!--{ad/footerbanner/wp a_f/3}-->
<!--{ad/float/a_fl/1}--><!--{ad/float/a_fr/2}-->
<!--{ad/couplebanner/a_fl a_cb/1}--><!--{ad/couplebanner/a_fr a_cb/2}-->
<!--{ad/cornerbanner/a_cn}-->
<!--{hook/global_footer}-->
<div id="ft" class="wp cl">
<div id="flk" class="y">
<table width="960" border="0" cellspacing="0" cellpadding="0">
<tr>
<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)) ||
!$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}-->
<!--{if $_G['setting']['statcode']}-->$_G['setting']['statcode']<!--{/if}-->
<font
color="#6495ed"><div
align='center'>本站提供网上自由讨论使用,所有个人言论并不代表本站立场,本站不负任何责任.如发现有侵权行为,请与我们联系.
<div
align='center'></left><divalign='center'> 我们将立刻从网站上删除,并向所有持版权者致最深歉意.</left><div
<font color=black>本站法人代表: <b><font color=lightgray>半月</font></b> QQ:<font
color=black>270226203</font> E-mail:<font
color=black><a href="mailto:banyue52@syouy.com">banyue52@syouy.com</a></font></font></br>
<img src="http://www.syouy.com/images/yxzz.jpg" alt="我们一直在努力成为最好的社区论坛"><div
<h1 class="fr"><SCRIPT language=javascript>
<!--
BirthDay=new Date("November 29,2011");
today=new Date();
timeold=(today.getTime()-BirthDay.getTime());
sectimeold=timeold/1000
secondsold=Math.floor(sectimeold);
msPerDay=24*60*60*1000
e_daysold=timeold/msPerDay
daysold=Math.floor(e_daysold);
document.write("<b>水悠悠社区 - 自2011年11月29日 至今已有<font color=red>"+daysold+"</font>天!</b>");
//-->
</SCRIPT></h1>
<tr>
<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© 2011-2012 All Right Reserved. </td>
</tr>
<tr>
<td height="60" align="center" valign="middle"><table width="500" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><table width="120" height="50" border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
<tr>
<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>
</tr>
</table></td>
<td align="center"><table width="120" height="50" border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
<tr>
<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>
</tr>
</table></td>
<td align="center"><table width="120" height="50" border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
<tr>
<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>
</tr>
</table></td>
<td align="center"><table width="120" height="50" border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
<tr>
<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>
</tr>
</table></td>
<td align="center"><table width="120" height="50" border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
<tr>
<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>
</tr>
</table></td>
<td align="center"><table width="120" height="50" border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
<tr>
<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>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
</table>
</div>
<!--{eval updatesession();}-->
<!--{if $_G['uid'] && $_G['group']['allowinvisible']}-->
<script type="text/javascript">
var invisiblestatus = '<!--{if $_G['session']['invisible']}-->{lang login_invisible_mode}<!--{else}-->{lang login_normal_mode}<!--{/if}-->';
$('loginstatusid').innerHTML = invisiblestatus;
<!--{/if}-->
</script>
</div>
<!--{if $upgradecredit !== false}-->
<div id="g_upmine_menu" class="tip tip_3" style="display:none;">
<div class="tip_c">
{lang credits} $_G[member][credits], {lang thread_groupupgrade} $upgradecredit {lang credits}
</div>
<div class="tip_horn"></div>
</div>
<!--{/if}-->
<!--{/if}-->
<!--{if !$_G['setting']['bbclosed']}-->
<!--{if $_G[uid] && !isset($_G['cookie']['checkpm'])}-->
<script type="text/javascript" src="home.php?mod=spacecp&ac=pm&op=checknewpm&rand=$_G[timestamp]"></script>
<!--{/if}-->
<!--{if !isset($_G['cookie']['sendmail'])}-->
<script type="text/javascript" src="home.php?mod=misc&ac=sendmail&rand=$_G[timestamp]"></script>
<!--{/if}-->
<!--{/if}-->
<!--{if $_GET['diy'] == 'yes'}-->
<!--{if (CURMODULE == 'topic' || $_G['group']['allowdiy']) && (empty($do) || $do != 'index') && !empty($_G['style']['tplfile'])}-->
<script type="text/javascript" src="{$_G[setting][jspath]}common_diy.js?{VERHASH}"></script>
<script type="text/javascript" src="{$_G[setting][jspath]}portal_diy.js?{VERHASH}"></script>
<!--{/if}-->
<!--{if $space['self'] && CURMODULE == 'space' && $do == 'index'}-->
<script type="text/javascript" src="{$_G[setting][jspath]}common_diy.js?{VERHASH}"></script>
<script type="text/javascript" src="{$_G[setting][jspath]}space_diy.js?{VERHASH}"></script>
<!--{/if}-->
<!--{/if}-->
<!--{if $_G['member']['newprompt'] && (empty($_G['cookie']['promptstate_'.$_G[uid]]) || $_G['cookie']['promptstate_'.$_G[uid]] != $_G['member']['newprompt']) && $_G['gp_do'] != 'notice'}-->
<script type="text/javascript">noticeTitle();</script>
<!--{/if}-->
<!--{eval userappprompt();}-->
<span id="scrolltop" onclick="window.scrollTo('0','0')">{lang scrolltop}</span>
<script type="text/javascript">_attachEvent(window, 'scroll', function(){showTopLink();});</script>
<!--{eval output();}-->
</body>
</html>
複製代碼
最终效果
下載
(53.84 KB)
2013-7-25 23:05
将代码插于首页第三方,具体的只针对简单的那代码
如我的效果图
下載
(10.76 KB)
2013-7-25 23:37
ps:今天看的 不知道这网站有木有人分享了,有的话就直接帮我处理掉该贴吧,我觉得蛮好的这代码,大家可以试试,按着自己想要的来,其余不要
圖片附件:
360截图20130725225728156.jpg
(2013-7-25 23:00, 6.41 KB) / 下載次數 1778
http://xclub.tw/discuz/attachment.php?aid=21717&k=113a870295812e4ccb39198b5ae31dd2&t=1732338221&sid=XH9583
圖片附件:
152309z8k9s1pkrlclrqgr.jpg
(2013-7-25 23:05, 53.84 KB) / 下載次數 1719
http://xclub.tw/discuz/attachment.php?aid=21718&k=7e31bc792247399d06a4c165a4443af6&t=1732338221&sid=XH9583
圖片附件:
360截图20130725233404828.jpg
(2013-7-25 23:37, 10.76 KB) / 下載次數 1742
http://xclub.tw/discuz/attachment.php?aid=21719&k=eb259234b95f2520576662ee69d2e58b&t=1732338221&sid=XH9583
作者:
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://xclub.tw/discuz/)
Powered by Discuz! 7.2