Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/02/2008, 14:01
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Re: Rotacion de thumbs usando onmouseover

Hola de nuevo.

Prueba este código:

Código PHP:
<html>
<
head>
<
script type="text/javascript">
imagenes = ['imagen1.jpg','imagen2.jpg','imagen3.jpg'];
num 0;
var 
pepe;
function 
rotar(id) {
  
obj document.getElementById(id);
  
num++;
  if (
num == imagenes.lengthnum 0
  obj
.src imagenes[num];
}
</script>
</head>
<body>
<img id="im" src="imagen1.jpg" onmouseover = 'pepe=setInterval("rotar(\"im\")",1000)' onmouseout="clearInterval(pepe)" />
</body>

</html> 
Saludos,