Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4250940
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:35:42+00:00 2026-05-21T04:35:42+00:00

I have currently installed prettyphoto and managed to launch an iframe on page load

  • 0

I have currently installed prettyphoto and managed to launch an iframe on page load through

$(document).ready(function(){

What is the quickest way to add a delay to it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T04:35:42+00:00Added an answer on May 21, 2026 at 4:35 am

    The window.setTimeout function in javascript is easy to use.

    You probably do something like

    $(document).ready(function(){
        $('#photo').prettyphoto(); //Not sure how you call prettyphoto
    }
    

    Add a delay before you make your call :

    $(document).ready(function(){
        //The call to callPrettyPhoto will only be made after 1 second
        window.setTimeout(callPrettyPhoto, 1000 );
    });
    
    function callPrettyPhoto() {
        $('#photo').prettyphoto();
    }
    

    Note that you can also put the function inline if you wish to do so :

    $(document).ready(function(){
        window.setTimeout(function() {
            $('#photo').prettyphoto();
        }, 1000);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On ubuntu I currently have haskell-platform 2011.2.0.1.2 installed, and I am currently working on
I currently have the gcc4.7 and the gcc4.7-base, etc., packages installed but GCC seems
If you install multiple versions of python (I currently have the default 2.5, installed
Currently I am using xCode 3.2.5 and I have already installed cocos2d template cocos2d
I have currently installed SQL Server 2008 (dev edition) in my machine. I wish
I currently have Parallels installed on my mac book pro. I'm running Visual Studio
I have python 2.6.6 and python 3.1.3 currently installed on my machine (Windows Vista
We currently have: a server installed Collabnet Subversion Edge used as a SVN server,
I have currently an installed pgsql instance that is running on port 1486 .
Currently have installed Windows 7 Home premium, im just wondering if i can install

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.