![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
24/11/2004, 08:18
|
![Avatar de orchabel](http://static.forosdelweb.com/customavatars/avatar6209_1.gif) | | | Fecha de Ingreso: marzo-2002 Ubicación: Hundido en un rincón...
Mensajes: 401
Antigüedad: 22 años, 11 meses Puntos: 1 | |
COloca el código dentro del frame que quieres que se refresque cada segundo... o coloca el nombre del frame que quieres que se refresque.
<script languaje="javascript"> var secs var timerID = null var timerRunning = false var delay =1000 function InitializeTimer(pSecs) { // Set the length of the timer, in seconds secs = pSecs StopTheClock() StartTheTimer() } function StopTheClock() { if(timerRunning) clearTimeout(timerID) timerRunning = false } function StartTheTimer() { if (secs==0) { StopTheClock() location = "this_page.php";
//Si quieres que se refresque un frame en especial coloca el nombre del frame aqui
top.{nombre_del_frame}.location = "the_page.php" } else { document.forma.secs.value = secs;
secs = secs -1 timerRunning = true timerID = self.setTimeout("StartTheTimer()", delay) } } InitializeTimer (1); </script>
__________________ BugHunter II
"si quieres un mañana mejor, piensa en ser mejor para un mañana" |