<script type="text/javascript">
<!--
var duration = 10000;
var timer = null;
var endTime = new Date().getTime() + duration;
function interval() {
var n = (endTime - new Date().getTime()) / 1000;
if (n < 0) return;
document.getElementById("timeout").innerHTML = n.toFixed(0);
setTimeout(interval, 10);
}
function stopJump() {
clearTimeout(timer);
document.getElementById("jumphint").style.display = "none";
}
window.onload = function() {
timer = setTimeout("window.location.href='index.aspx'", duration);
interval();
}
//-->
</script>
<span id="jumphint">系统在 <span id="timeout"></span> 秒后 将自动</span> //放在body中需要显示的地方