Summary of code for page timed jump (Countdown jump)

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.