C#技术百科
问问你的心你有没有信心 做事情要专一坚定,执着

<script language="javascript" type=text/javascript>

var date=new Date();

var year=date.getYear();

var month=date.getMonth()+1;

var day=date.getDate();


var hour=date.getHours();

var minute=date.getMinutes();

var second=date.getSeconds();

document.write(year+'-'+month+'-'+day+' '+hour+':'+minute+':'+second+'<br>');
function timer()
{
var date=new Date();

var year=date.getYear();

var month=date.getMonth()+1;

var day=date.getDate();


var hour=date.getHours();

var minute=date.getMinutes();

var second=date.getSeconds();

document.getElementById("idnow").innerHTML=(year+'-'+month+'-'+day+' '+hour+':'+minute+':'+second+'<br>'+(new Date()-Date.parse(document.lastModified))/1000/3600/24);
}
window.setInterval("timer()",10);
</script>
<span id="idnow"></span>

posted on 2009-07-20 14:25  王德田  阅读(425)  评论(0编辑  收藏  举报