<
span
id="totalSecond">5</
span
>
<
script
language="javascript" type="text/javascript">
var second = totalSecond.innerText;
setInterval("redirect()", 500);
function redirect(){
totalSecond.innerText=--second;
if(second<
0) location.href='
http://www.tom.com';
}
</script>