Questo funziona come vuoi tu.
Dopo 11 secondi si "oscura", ho aggiunto come test che dopo altri 5 secondi torna come prima.
Penso tu abbia abbastanza materiale su cui lavorare.
Ciao,
Simone.
codice:<html> <head> <style type="text/css"> body { z-index:1; margin: 0; padding: 0; background: repeat-x white; font: 10px Verdana, Arial, Trebuchet, Sans-Serif; color: #000; text-align: left; line-height: 190%; } #coprente { width: 100%; height: 100%; position: absolute; top:0px; left:0px; z-index:50; background-color: #000000; opacity: 0.8; filter: alpha(opacity=80); display: none; } .popup { position: absolute; top: 50%; left: 50%; margin-left: -300px; margin-top: -214px; width: 600px; height: 439px; display: none; z-index: 100; } </style> <script type="text/javascript">window.onload= function(){setTimeout("copri();",11000)}</script> <script language="javascript"> function copri() { document.getElementById("coprente").style.display="inline"; document.getElementById("mariorossi").style.display="inline"; setTimeout("scopri();",5000); } function scopri() { document.getElementById("coprente").style.display="none"; document.getElementById("mariorossi").style.display="none"; } </script> </head> <body> PAGINA PRINCIPALE <br> <br> DA <br> <br> COPRIRE <iframe id="mariorossi" class="popup" src="../files/iframe.php"></iframe> <div id="coprente"></div> </body> </html>

Rispondi quotando

