PHP page display content after delay jump

Source: Internet
Author: User
Want to make a page, pass a URL to come in, first the content of the page itself is displayed, and then a few seconds later jump to the URL.
For example: Download the page, put some ads, and then jump.
Website Many although can jump, but show not content, ask big God


Reply to discussion (solution)

HTTP header with delay jump instruction
such as the header ("refresh:5;url=index.php");
Will go to index.php in 5 seconds.

HTTP header with delay jump instruction
such as the header ("refresh:5;url=index.php");
Will go to index.php in 5 seconds.
Not I want the effect, I want to be in the jump before the content of this page can be displayed, please write a whole code to see it, thank you

$ (document). Ready (function () {
SetTimeout (function () {location.href= "bbb.html";},5000);
});

  • 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.