论坛最上面显示时间 加入收藏 问候语等
演示 如本论坛:方法:进入后台 --全局---优化设置---其他头部信息里面加下面代码:
<span><font color=white><script language=Javascript type=text/Javascript>
var day="";
var month="";
var ampm="";
var ampmhour="";
var myweekday="";
var year="";
mydate=new Date();
myweekday=mydate.getDay();
mymonth=mydate.getMonth()+1;
myday= mydate.getDate();
myyear= mydate.getYear();
year=(myyear > 200) ? myyear : 1900 + myyear;
if(myweekday == 0)
weekday=" 星期日 ";
else if(myweekday == 1)
weekday=" 星期一 ";
else if(myweekday == 2)
weekday=" 星期二 ";
else if(myweekday == 3)
weekday=" 星期三 ";
else if(myweekday == 4)
weekday=" 星期四 ";
else if(myweekday == 5)
weekday=" 星期五 ";
else if(myweekday == 6)
weekday=" 星期六 ";
document.write(year+"年"+mymonth+"月"+myday+"日 "+weekday);
</script></font>| </span>
<span><a href="javascript:window.external.addFavorite('http://www.naale.biz,'Let's Earn Money Together');"><b><font color="red">加入收藏</font></b></a>
 | </span>
<td><a style="BEHAVIOR: url(#default#homepage)" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.naale.biz');return(false);" href="http://www.naale.biz"><b><font color="red">设为首页</font></b></a> | <font color=yellow><b>最佳分辨率1024*768</b></font> | </td>
<SCRIPT language=LiveScript>
now = new Date(),hour = now.getHours()
if(hour < 5){document.write("<FONT color=white><B>太晚了!简直不要命了!!赶紧上床睡觉了!!!</B></FONT>")}
else if (hour < 8){document.write("<FONT color=white><B>早上好!新的一天开始了!!出门请注意安全!!!</B></FONT>")}
else if (hour < 12){document.write("<FONT color=white><B>上午好!祝你玩得开心!!!</B></FONT>")}
else if (hour < 14){document.write("<FONT color=white>中午好!还在上网?! 去睡个午觉休息一下吧!!!</B></FONT>")}
else if (hour < 18){document.write("<FONT color=white><B>下午好!辛苦了!!要注意劳逸结合啊!!!</B></FONT>")}
else if (hour < 22){document.write("<FONT color=white><B>晚上好!祝你玩的愉快!!万事如意!!!</B></FONT>")}
else if (hour < 24){document.write("<FONT color=white><B>夜深了!要注意身体呀!!祝你梦想成真!!!</B></FONT>")}
</SCRIPT>
进入后台 --全局---优化设置{:3_78:}咋设
页:
[1]