Hello,
I am using the following in a website. It displays a series of DIV's one after another. It is currently set up to rotate between 5 (including the default DIV). I want to add one more, but for the life of me can't get it to work. Although I am a HTML/CSS/PHP guy, I self admittedly am not too good with the Jquery stuff. I have changed the below highlighted numbers, but not even sure if I'm on the right track. Any help would be greatly appreciated!
http://jsfiddle.net/Arj2C/
var next = 2;
$(function(){
setInterval(function(){
if(next == 1) $("#4").toggleClass("hidden");
$("#" + (next-1)).toggleClass("hidden");
if(++next == 5) {
//$("#4").toggleClass("hidden");
$("#" + (next-1)).toggleClass("hidden");
next = 1;
} else $("#" + (next-1)).toggleClass("hidden");
}, 10000);
});