This is a page jump effect that you can often see. The delay go to URL is used.
The first thing to do is to add a tag with the number 5 indicating a few seconds to jump.
<span id= "Time" >5</span> seconds after the jump, if not jump, please click the link below
Here is the method section:
<script language= "JavaScript1.2" type= "Text/javascript" > function Delayurl (URL) { var delay=document.getelementbyid ("time"). innerhtml; //Gets the character if (delay>0) in the tag named "Time" { delay--; document.getelementbyid ("Time") .innerhtml=delay; }else{ window.top.location.href=url; } settimeout ("DelayURL ('" +url + "')", " //" executes the Delayurl (URL) method every second }</script>
Add code to <body>:
<a href= "***.jsp" > Please click </a><script type= "Text/javascript" > Delayurl ("***.jsp");//page to jump </ Script>
This article is from the "Learning Corner" blog, please be sure to keep this source http://melinstudy.blog.51cto.com/8781036/1532887