This article mainly introduces the JS 3 seconds after the jump page implementation code, the need for friends can refer to the following
How many seconds after the automatic jump to other pages (JS script) method one: in <head></head> to add JS code as follows: <script language= " JavaScript "> var secs = 3; Number of seconds to Countdown VAR URL; function Load (URL) {url = URL; for (var i=secs;i>=0;i--) { window.settimeout (' doupdate (' + i + ') ', (secs-i) * 1000); } } function doupdate (num) { document.getElementById (' Showdiv '). InnerHTML = ' will automatically jump to home page ' after ' +num+ ' seconds; if (num = = 0) {window.location = URL;}} </script> Then add <body onload= "Load (' index.asp ')" in <body> to the page for which you want to jump index.asp. between <body></body> plus <div id= "Showdiv" ></div> method two: code as follows: <p style= " Text-indent:2em; margin-top:30px; " > system will automatically jump to the new URL after <span id= "time" >5</span> seconds, if it fails to jump, <a href= "http://www.jb51.net" title= "click to visit" > Please click on </a>. </p> <script type= "Text/javascript" > delayurl (); Function Delayurl () { var delay = document.getElementById ("Time"). InnerHTML; var t = Sett Imeout ("Delayurl ()", 1000); if (Delay > 0) { delay-- &N Bsp document.getElementById ("Time"). InnerHTML = delay; } else { cleartimeout (t); Window.location.href = "Http://www.jb51.net"; } } </script>