Solved

jQuery delay

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Log4Net custom Appender not being fired. 5 44
Error viewing ASP page 12 94
Java Server Faces parameter pass? 6 22
Bootstap Icons 3 21
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn how to count occurrences of each item in an array.

757 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

21 Experts available now in Live!

Get 1:1 Help Now