Here is a simple JQuery ticker I have written. How would I make it continue to tick after it gets to the end. At the moment it stops at the end of the sequence.
$('#fader').children().hide();
$.fn.seqfx = function() {
$(this).fadeIn(400);
$(this).delay(4000);
$(this).fadeOut(300, function() {
$(this).next().seqfx();
});
};
$(document).ready(function()
{
$("#fader div:first").seqfx();
});
I tried if ($(this).is('div:last')) { $(this).first().seqfx(); }; else $(this).next().seqfx();
but it just repeats the first element constantly.
Any ideas?
Marvellous