Hi, add an auto click event
hi, i've created a div with 3 tabs and 3 content boxes, i added an effect of fade and now i want the tabs to be clicked automatically (the boxes to appear in cycle each at a time), how do i add an auto play or auto click event to this function? thanks.
$(function () {
var tabContainers = $('div.tabs > div');
tabContainers.hide().filter(':first').show();
$('div.tabs ul.tabNavigation a').click(function () {
tabContainers.hide();
tabContainers.filter(this.hash).fadeIn(1000);
$('div.tabs ul.tabNavigation a').removeClass('selected');
$(this).addClass('selected');
return false;
}).filter(':first').click();
});