<script>
var t = 3;
setInterval("testTime()", 1000); //启动1秒定时
function testTime() {
if (t == 0) {
window.location= http://www.qq.com;
Window.clearInterval();
} else {
if(navigator.appName.indexOf("Explorer") > -1){
document.getElementById('view').innerHTML=t;
} else{
document.getElementById('view').textContent = t;
}
t--; // 计数器递减
}
}
</script>