If anyone can help me , I want this js process on one of my page:
- Delay of 60 sec;
- Show my div 1 for 20 sec;
- Delay of 60 sec;
- Show my div 2 for 20 sec;
- Delay of 60 sec;
- Show my div 1 for 20 sec;
- Delay of 60 sec;
- Show my div 2 for 20 sec;
- .
- .
- continue forever...
I tried to use this solution! which I found at 'StockOverFlow' but not working correctly for me.
Thank You
Here's some code that will do that:
HTML:
Javascript:
You can set the interval times to whatever you would like - I have them set short here for demo purposes. This uses a sequence of jQuery effects and then upon the completion of the last effect on a given object, it starts the cycle over again on the other object and repeats forever.
You can see it working here: http://jsfiddle.net/jfriend00/LTRzV/.