Solved

jQuery delay

Posted on 2012-03-19
1
519 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

832 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