Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/06/2006, 12:36
Avatar de gabyweb
gabyweb
 
Fecha de Ingreso: enero-2002
Ubicación: Lima
Mensajes: 364
Antigüedad: 23 años
Puntos: 0
Problema con Efecto en imágenes

Hola

Tengo este script
Código HTML:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript">
var imagenes=new Array()

imagenes[0]=new Image (380,288);
imagenes[0].src="tibidabo.jpg"
imagenes[1]=new Image (380,288);
imagenes[1].src="gato.jpg"
imagenes[2]=new Image (380,288);
imagenes[2].src="paloma.jpg"
imagenes[3]=new Image (380,288);
imagenes[3].src="alenanene.jpg"

cont=0
function presImagen()
{
  
	 for (c=1;c<=3;c++)	{
	
		if (document.all){
	
			foto=document.getElementById('foto'+c);
			//document.getElementById('foto').filters.blendTrans.apply();
			//document.getElementById('foto').src=imagenes[cont].src;
			//document.getElementById('foto').filters.blendTrans.play();
			
			foto.filters.blendTrans.apply();
			foto.src=imagenes[cont].src;
			foto.filters.blendTrans.play();
	
		} else {
			fotos='foto'+c;
			document.images.fotos.src = imagenes[cont].src;
		}
		
		if (cont < imagenes.length-1) 
			cont ++;
		else
			cont=0;
		
		tiempo=window.setTimeout('presImagen()',5000);
		
	 } //del for
}
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" onLoad="presImagen()">
<table>
	<tr>
		<td><img id="foto1" src="alenanene.jpg" width="380" height="288" style="filter:blendTrans(duration=3)"></td>
		<td><img id="foto2" src="tibidabo.jpg" width="380" height="288" style="filter:blendTrans(duration=3)"></td>
		<td><img id="foto3" src="gato.jpg" width="380" height="288" style="filter:blendTrans(duration=3)"></td>
	</tr>
</table>
</body>
</html> 
Lo que quiero es que permanentemente los efectos de las imágenes se queden en la página, pero llega un momento en que la página no responde.
¿Podrían decirme en dónde está mi error?

Gracias por su ayuda

__________________
Gaby :adios: