<script>
var timeLeft = 90 * 60 * 1000;
function countTime()
{
if(timeLeft == 0)
{
    alert("时间到!");
    return;
}
    var startMinutes = parseInt(timeLeft / (60 * 1000), 10);
    var startSec = parseInt((timeLeft - startMinutes * 60 * 1000)/1000)
    document.body.innerText = "剩余时间:" + startMinutes + "分钟" + startSec + "秒";
    timeLeft = timeLeft - 1000;
    setTimeout('countTime()',1000);
}
</script>
<body onload="countTime()">
</body>