首先打开template/您当前的模版/common/pubsearchform.htm (如果当前模版没有此文件请修改默认模版的文件)
查找:- <!--{if $_G['setting']['srchhotkeywords']}-->
- <strong class="xw1">{lang hot_search}: </strong>
- <!--{loop $_G['setting']['srchhotkeywords'] $val}-->
- <!--{if $val=trim($val)}-->
- <!--{eval $valenc=rawurlencode($val);}-->
- <!--{block srchhotkeywords[]}--><a href="search.php?mod=forum&srchtxt=$valenc&formhash={FORMHASH}&searchsubmit=true&source=hotsearch" target="_blank" class="xi2">$val</a><!--{/block}-->
- <!--{/if}-->
- <!--{/loop}-->
- <!--{echo implode('', $srchhotkeywords);}-->
- <!--{/if}-->
复制代码 在本段代码下增加以下代码:- <SCRIPT language=JavaScript>
- <!--
- Day=new Array(7);
- Day[0]="日"; Day[1]="一";
- Day[2]="二"; Day[3]="三";
- Day[4]="四"; Day[5]="五";
- Day[6]="六";
-
- today=new Date();
- month=today.getMonth()+1;
- day=today.getDate();
- weekly=today.getDay();
-
- mydate="<Font color =#999999><b>"+month+"</b>月<b>"+day+"</b>日<b>星期"+Day[weekly]+"</b></Font>";
- // -->
- </script>
- <script>document.write(mydate);</script><img src="{STATICURL}image/common/sj.gif" style="position:relative; top:4px;"> 本站 已运行:<b> <font color=#5c6b8d><SCRIPT language=JavaScript>
- var urodz= new Date("9/26/2011"); //改成您的建站日期格式为月/日/年
- var now = new Date();
- var ile = now.getTime() - urodz.getTime();
- var dni = Math.floor(ile / (1000 * 60 * 60 * 24));
- document.write(+dni)</script> </b></font>天
- </div>
复制代码 |