Añadir reproducción automática a este jQuery Carrusel
He creado un carrusel utilizando jQuery y me gustaría agregarle la función de reproducción automática.
Aquí está mi JS existente:
<code>$(document).ready(function (){ $('#button a').click(function(){ var integer = $(this).attr('rel'); $('#myslide .cover').animate({left:-705*(parseInt(integer)-1)}) $('#button a').each(function(){ $(this).removeClass('active'); if($(this).hasClass('button'+integer)){ $(this).addClass('active')} }); }); }); </code>
Y aquí estáun violín de trabajo.
Pregunta: No tengo idea de por dónde empezar con el juego automático. ¿Alguna sugerencia?