The following is a summary of the implementation of regular page Jump (also called countdown jump). Various timed jump code records are as follows:
(1) Use the setTimeout Function to implement timed jump (the following code should be written in the body area)
<Script type = "text/javascript"> // jump to the specified page after 3 seconds (window. location. href = 'HTTP: // www.phpernote.com/div-css/354.html', 3); </script>
(2) html code implementation. Add the following code to the header area of the page:
<! -- Jump to the specified page in 5 seconds --> <meta http-equiv = "refresh" content = "5; url = http://www.phpernote.com/php-function/241.html"/>
(3) It is a little complex, most often seen in timed jump after login
<Html xmlns = "http://www.phpernote.com/php-template/195.html">
(4) page redirection using php header has achieved the purpose of regular page Jump
<? Php/** @ title: PHP implements regular jump @ function: Wait for the specified time, and then jump to the specified page (instead of html meta) */header ("refresh: 3; url = http://www.phpernote.com/javascript-function/61.html "); echo 'loading, please wait... <br> automatic jump after three seconds ';/* Note: If the waiting time is 0, it is equivalent to header ("location. */?>
Articles you may be interested in
- How to set the jump wait time for the thinkphp page Jump (successerror)
- Prohibit web page right-click, copy, save as, View Source file and other functions to implement web page source code protection
- Windows cannot start the hardware device because its configuration information (in the Registry) is incomplete or damaged. (Code 19) Solution
- Insert flash code to the page
- Redirect PHP code from different cities by IP Address
- Compatible with the setting homepage of IE and firefox and the JavaScript code added to favorites
- Jquery checks whether the page has been loaded with the jquery File
- PHP retrieves the complete url function of the current page, including Parameters