var startTime = new Date(); var endTime=startTime.getTime()+10*60*1000; var g_blinkswitch = 0; var g_blinktitle = document.title; function getRemainTime(){
var nowTime = new Date(); var nMS =endTime - nowTime.getTime(); var nM=Math.floor(nMS/(1000*60)) % 60; var nS=Math.floor(nMS/1000) % 60; if(nM==0&&nS==0&&nMS<1000) //当倒计时结束 { window.focus(); setInterval("blinkNewMsg()", 1000); window.location.reload(); } if(nS < 10) nS = "0" + nS;