Ver Mensaje Individual
  #8 (permalink)  
Antiguo 08/02/2011, 19:57
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 16 años, 7 meses
Puntos: 101
Respuesta: Anular la función de clearInterval

Prueba así:

Código Javascript:
Ver original
  1. <script type="text/javascript">
  2. <!--
  3. var img = 79;
  4. var move = 0;
  5. var time;
  6. function masImagenes()
  7. {
  8. move += 1;
  9. if (move < img*4)
  10. {
  11. &#160; document.getElementById('galeria').scrollTop = move;
  12. }
  13. if (move == img || move == img*2 || move == img*3 || move == img*4)
  14. {
  15. &#160; move = 0;
  16. &#160; clearInterval(time);
  17. &#160; setTimeout("llamar();",2*1000); // 2 segundos esperamos y llamo a llamar :P
  18. }
  19. }
  20. function llamar()
  21. {
  22. time = setInterval('masImagenes()',10);
  23. if (move == 316)
  24. {
  25. &#160; document.getElementById('galeria').scrollTop = 0;
  26. }
  27. }
  28. // -->
  29. </script>
__________________
Half Music - www.halfmusic.com