Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/08/2008, 10:11
anje53
 
Fecha de Ingreso: agosto-2006
Mensajes: 24
Antigüedad: 18 años, 6 meses
Puntos: 1
Actualizar frame de manera otumatica

Hola.
Me gustaria que me ayudaran con el siguiente problema:
No se si se pueda hacer.
Actualizar un frame desde otro pero con diferentes paginas, algo como; hacer un carrusel de paginas web.
Yo lo he intentado pero no hay manera.
He hecho un script pero me da error.
Podria ser que, no carga en memoria las paginas completas?
Haciendo trampa se podria hacer?
O, ultima instancia actulizar un frame desde otro de manera automatica?

Este es el frame principal
<html>
<title>Frames</title>
<head>

</head>

<frameset cols=200,*>
<frame src="Frame1" noresize="no">
<frame src="http://www.forosdelweb.com" noresize="no">
</frameset>
</frameset>

</html>


Este el frame 1, donde tengo el script
</html>
<head>
<title>Frame 1 </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<SCRIPT Language = JavaScript>

var myUrls= new Array();
myUrls[1]="http://www.forosdelweb.com"
myUrls[2]="http://www.google.com.htm"
myUrls[3]="http://www.youtube.com"
var myCount =1;
function ir(){
parent.frames[1].document.location.href=myUrls[myCount];
myCount ++;

if (myCount >= myUrls.length){ // Si llega al ultimo array;
myCount = 1; // que empiece otra vez;
}

setTimeout("ir()", 4000)
}

</SCRIPT>
</head>

<body onload="ir()" bgcolor="#FFFFFF" text="#000000">


</body>
</html>

Saludos.
Gracias.