Solved

jQuery delay

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
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 learn how to count occurrences of each item in an array.

809 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