<html>
<head></head>
<body>
<div><span id="label1"></span></div>
<script language="javascript">
var totalminu=1; //总时间(分钟)
var minu=0;
var strminnu="";
var sec=0;
var strsec="";
function show()
{
if(sec>=0&sec<60)
{
sec=sec+1;
if((60-sec)>=0&(60-sec)<10)
{
strsec="0"+(60-sec);
}
else
{
strsec=60-sec;
}
if((totalminu-1-minu)>=0&(totalminu-1-minu)<10)
{
strminnu="0"+(totalminu-1-minu);
}
else
{
strminnu=totalminu-1-minu;
}
document.getElementById("label1").innerHTML=strminnu+":"+strsec;
}
if(sec==60)
{
strsec="00";
if((totalminu-1-minu)>=0&(totalminu-1-minu)<10)
{
strminnu="0"+(totalminu-1-minu);
}
else
{
strminnu=totalminu-1-minu;
}
document.getElementById("label1").innerHTML=strminnu+":"+strsec;
sec=0;
minu=minu+1;
}
// if(sec==59)
//{
//total=total-1;
//}
if((totalminu-1-minu)<0)
{
clearInterval(a);
}
}
var a=setInterval(show,1000);
</script>
</body>
</html>