Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Nov 2012
    Posts
    20
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Can't get the iframe pop-up to SLEEP for 5 seconds, and THEN execute!It just executes

    How do I make it so that the thing waits for a few seconds before executing the iframe script

    PHP Code:
    <?php
    usleep
    (5000);
    ?>

    <a class="fancybox-iframe" href="http://eepurl.com/wqp4n"></a><br>

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,731
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    For some reason Javascript has no sleep() function.

    #All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    New Coder
    Join Date
    May 2012
    Posts
    25
    Thanks
    4
    Thanked 1 Time in 1 Post
    To get PHP to wait would need to be the below:

    usleep(5000000);

    Not sure if that will make a difference though.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •