如图
开始
body或head插入
[text]<SPAN id=ikmoe></SPAN>
<SCRIPT language=javascript>
function show_date_time(){
window.setTimeout(“show_date_time()”, 1000);
BirthDay=new Date(“9/9/9999 1::00:00″);//建站日期
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);
e_hrsold=(e_daysold-daysold)*24;
hrsold=Math.floor(e_hrsold);
e_minsold=(e_hrsold-hrsold)*60;
minsold=Math.floor((e_hrsold-hrsold)*60);
seconds=Math.floor((e_minsold-minsold)*60);
ikmoe.innerHTML=”萌一库在黑暗势力下存货”+daysold+”天”+hrsold+”小时”+minsold+”分”+seconds+”秒”;
}
show_date_time();
</SCRIPT>[/text]
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容