<script>
flag=0;
function start()
{
var timee=new Date();
var year=timee.getFullYear();
var month=timee.getMonth()+1;
var day=timee.getDate();
var hour=timee.getHours();
var min=timee.getMinutes();
var sec=timee.getSeconds();
document.getElementById("clockk").innerHTML=year+"年"+month+"月"+day+"日"+hour+"小时"+min+"分"+sec+"秒";
}
function checkgo()
{
if(flag==0)
{
shua=setInterval('start()',1000);
flag=1;
}else{
clearInterval(shua);
flag=0;
}
}
</script>
网友评论