Código HTML:
<p><a href="javascript:showLightbox();">abrir</a></p> <div id="over" class="overbox"> <div id="content"> Cargando pelicula <br /> <strong></strong>.<br /><br /> <div style="display: none;" class="verify" id="verify"><a href="javascript:hideLightbox();">Ver Pelicula</a></div> <div style="display: block;" class="adoptim" id="askPws"> <form name="counter"> Por favor Espere mientras carga la pelicula ... <input type="text" size="3" name="d2" class="countdown" /> Segundos </form> <script type="text/javascript"> <!-- // var milisec=0 var seconds=30 var once=0 document.counter.d2.value='15' function display(){ if ((milisec==0) && (seconds==0) && (once==0)) { document.getElementById("verify").style.display="block"; document.getElementById("dlb").style.display="block"; document.getElementById("askPws").style.display="none"; once=1; } if (milisec<=0){ milisec=9 seconds-=1 } if (seconds<=-1){ milisec=0 seconds+=1 } else milisec-=1 document.counter.d2.value=seconds setTimeout("display()",100) } if ((milisec==0) && (seconds==0)) { pause(1000); display(); } else { display(); } --> </script>