Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/09/2008, 07:24
Avatar de Panino5001
Panino5001
Me alejo de Omelas
 
Fecha de Ingreso: mayo-2004
Ubicación: -34.637167,-58.462984
Mensajes: 5.148
Antigüedad: 20 años, 9 meses
Puntos: 834
Respuesta: Actualizar frame de manera otumatica

Probá así:
conjunto de marcos:
Código PHP:
<html>
<
title>Frames</title>
<
head>

</
head>

<
frameset cols=200,*>
<
frame src="_uno.php" noresize="no">
<
frame id="pp" src="http://www.forosdelweb.com" noresize="no">
</
frameset><noframes></noframes>
</
frameset>

</
html
Marco superior:
Código PHP:
<html>
<
head>
<
title>Frame 1 </title>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<
script>

var 
myUrls= new Array();
myUrls[1]="http://www.forosdelweb.com"
myUrls[2]="http://www.google.com"
myUrls[3]="http://www.youtube.com"
var myCount =1;
function 
ir(){
parent.document.getElementById('pp').src=myUrls[myCount];
myCount ++;

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

setTimeout("ir()"4000)
}

window.onload=function(){
    
ir();

</script>
</head>

<body>

</body>
</html> 
(En el conjunto de marcos definí un id para el marco 2 y cambiá el nombre del src del marco 1 por el que corresponda)