Solved

jQuery delay

Posted on 2012-03-19
1
518 Views
Last Modified: 2012-03-19
I am forever having problems with the jQuery function .delay()

I have read the jQuery docs, not sure what I'm doing wrong.

For example:

function triggerRight(){
	for(var i = 1; i <= 20; i++ ){
		movePhotosRight().delay(400);
	}
}

Open in new window


TIA Experts
0
Comment
Question by:Imaginx
1 Comment
 
LVL 1

Accepted Solution

by:
Imaginx earned 0 total points
ID: 37740350
need to que the function as an fx

function triggerRight(t){
	for(var i = 1; i <= 20; i++ ){
		$("#premiereCont").delay(2500).queue(function(){ 
			movePhotosRight();
		  $(this).dequeue(); 
		});
	}
}

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now