I'm trying to create a jQuery fade in/out banner for a website that has 3 different links on it. I have successfully used the following answer Simple fade in fade out div with jquery on click to get 2 of the links to work but I'm having trouble with the third.
Here is the jQuery code:
$('#btn2').click(function (e) {
$('#home_splash1').fadeOut('slow', function () {
$('#home_splash2').fadeIn('slow');
});
});
$('#btn1').click(function (e) {
$('#home_splash2').fadeOut('slow', function () {
$('#home_splash1').fadeIn('slow');
});
});
$('#btn3').click(function (e) {
$('#home_splash1').fadeOut('slow', function () {
$('#home_splash3').fadeIn('slow');
});
});
The HTML/CSS code is pretty lengthy, so I'll post the link to jsfiddle, which has all the code http://jsfiddle.net/u2NGy/
Any help would be greatly appreciated!