JSを使用して現在のシステム時間、曜日スクリプト、毎分リフレッシュ
805 ワード
function showLeftTime()
{
var now=new Date();
var year=now.getFullYear();
var month=now.getMonth()+1;
var day=now.getDate();
var hours=now.getHours();
var minutes=now.getMinutes();
var seconds=now.getSeconds();
var dd=now.getDay();
var d=new initArray(" "," "," "," "," "," "," ");
//document.all.show.innerHTML=" "+year+" "+month+" "+day+" "+d[dd+1]+"";
document.all.show.innerHTML="${loginUser.username} "+year+" "+month+" "+day+" "+d[dd+1]+"";
//
var timeID=setTimeout(showLeftTime,1000*60);
}