function GetRTime(){
var NowTime = new Date();
var nMS =0;
var nM=Math.floor(nMS/(1000*60)) % 60;
var nS=Math.floor(nMS/1000) % 60;
document.getElementById("RemainM").innerHTML=nM-1;
document.getElementById("RemainS").innerHTML=nS;
if((nMS>59*1000&&nMS<=60*1000)||nM==0)
{
setFlag();
}
setTimeout("GetRTime()",1000);
}
var NowTime = new Date();
var nMS =0;
var nM=Math.floor(nMS/(1000*60)) % 60;
var nS=Math.floor(nMS/1000) % 60;
document.getElementById("RemainM").innerHTML=nM-1;
document.getElementById("RemainS").innerHTML=nS;
if((nMS>59*1000&&nMS<=60*1000)||nM==0)
{
setFlag();
}
setTimeout("GetRTime()",1000);
}
评论
发表评论