Ver Mensaje Individual
  #13 (permalink)  
Antiguo 17/05/2010, 10:36
Avatar de wiwi74
wiwi74
 
Fecha de Ingreso: marzo-2008
Mensajes: 515
Antigüedad: 16 años, 2 meses
Puntos: 10
Respuesta: ejecutar un script php cada "X" minutos

Asi como llamo a una paguina, se puede llamar (abviamente) a un script:
Denuevo el codigo y mejorado:




<script language="javascript" type="text/javascript">
var count=0;;

var urls=Array("http://www.softonic.com/",
"http://www.forosdelweb.com/",
"http://www.taringa.com/",
"http://www.cristalab.com/"
);


function llama(){
//document.getElementById("mostrar").innerHTML=count ;
//alert(urls[0]);
frames['IFrameName'].location.href=urls[count];
$r=setTimeout("llama()",10000);
if(count == 3){
clearTimeout($r);
//document.getElementById("mostrar").innerHTML="Dete nido";
frames['IFrameName'].location.href=urls[count];
count=0;
}
count++;
}
</script>
<body onLoad="llama()">

<center><h1><div id="mostrar"></div></h1></center>

<iframe name="IFrameName" frameborder="yes" scrolling="yes" width="100%" height="200px"></iframe>

<center><h2><font color="#CC0000">Contenido estatico...</font></h2></center>