Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/01/2010, 02:04
Folter
 
Fecha de Ingreso: diciembre-2008
Mensajes: 67
Antigüedad: 15 años, 4 meses
Puntos: 1
Retroceder en una función

Hola, quiero que cuando una función llega hasta el final vuelva al principio. La función es la siguiente:

$(document).ready(function(){
$("#artist_1").show();
setTimeout(function(){
$("#artist_1").hide();
$("#artist_2").show();
setTimeout(function(){
$("#artist_2").hide();
$("#artist_3").show();
setTimeout(function(){
$("#artist_3").hide();
$("#artist_4").show();
}, 5000);
}, 5000);
}, 5000);
});

O sea, cuando llegue hasta mostrar el artist_4 que vuelva a artist_1. He probado con "return true;" pero tampoco se exactamente como funciona. Espero que alguien me eche una mano :P

Saludos.