Gracias.
![Pensando](http://static.forosdelweb.com/fdwtheme/images/smilies/scratchchin.gif)
| ||||
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" |
| ||||
En el caso de refrescar un frame dices que coloque el nombre del frame en Location para que sirve? la pagina que asignas cual es? ("thispage.php") la que contiene el frame?
__________________ Thank you Very much brother! :-D |