9
<script> <BR>document.getElementByIdx_x=function(id){ <BR>if(typeof id =='string') <BR>return document.getElementById(id); <BR>else <BR>throw new error('please pass a string as a id!') <BR>} <BR>var timer = window.setInterval(function(){ <BR>document.getElementByIdx_x('box').innerHTML = parseInt(document.getElementByIdx_x('box').innerHTML) - 1; <BR>if(parseInt(document.getElementByIdx_x('box').innerHTML) < 0) <BR>{ <BR>window.clearInterval(timer); <BR>window.location = 'http://www.jb51.net'; <BR>} <BR>}, 1000); <BR></script>