I'm a newbie on jQuery. Can somebody help me with my 2days problem. I just in need of a sample code for a fading effect, slideshow.
Here's the style.
- This will be 3 Divs with same class
- The first div, will show for 6secs then fades out for 2secs
- before the first fades out the second div will fade in for 2secs
- this again will show for 6secs then fades out for 2secs.
- Then the third div will fades in same way for 2secs.
- Will show for 6secs then fades out for 2secs. Then they will rotate or loop.
Thank you for helping me out.
EDIT - Relevant code from comment
$(document).ready(function(){
function looptour(){
$("#health").hide();
$("#billing").hide();
$("#pension").delay(6000).fadeOut(2000);
$("#health").delay(6000).fadeIn(2000).delay(6000).fadeOut(2000);
$("#billing").delay(14000).fadeIn(2000).delay(6000).fadeOut(2000);
$("#pension").delay(14000).fadeIn(2000,looptour);
}
looptour();
});