"setTimeout("start()");" hinzufügen

arraybreak

Erfahrenes Mitglied
Abend All,

Ich hab ein jQuery zu dem ich ein zusätzliches "setTimeout("start()", 5000);" hinzufügen will damit er nach "clearIntervall" wieder abspielt, ist das möglich?

PHP:
jQuery(function() {
				  jQuery('#bu-posts ul li').hide();
			  });
			  
			  jQuery(window).bind('load', function() {
				   var i = 1;
				   var imgs = jQuery('#bu-posts ul li').length;
				   var int = setInterval(function() {
					   //console.log(i); check to make sure interval properly stops
					   if(i >= imgs) clearInterval(int);
					   jQuery('#bu-posts ul li:hidden').eq(0).fadeIn(600);
					   i++;
				   }, 600);
			  });

Gruß arraybreak
 

Neue Beiträge

Zurück