Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add time delay in rotating images

Status
Not open for further replies.

gns100

Programmer
Aug 11, 2003
40
US
I have two groups of images (A & B) which I display next to each other. Each group rotates on a 6 sec interval. I use setInterval() to achieve this. This works.

I want to modify my code to have Group B rotate 3 sec later than Group A. Both sets still change every 6 sec. How can I do this.

Should I use another setInterval()?
Is there some way to add a 3 sec hold on the execution of code at a particular part of my program?

Any ideas? Thanks.
 
use another setInterval()...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top