Ciao ragazzi,
ho adattato unpaio di script per cercare di far aprire una popup a tutto schermo, e a seconda della risoluzione dell'utente far caricare un filmato, o meglio una pagina contenente un filmato, invece di un altro.
Questo è il codice, ma purtroppo mi da errore al click:
codice:
<script language="JavaScript">
function PopupCentrata() {

var s_width =''; 
var s_height =''; 

s_width=screen.width 
s_height=screen.height 

var l = Math.floor((screen.width-s_width)/2);
var t = Math.floor((screen.height-s_height)/2);

if (s_width == "800"){ 
window.open("home800.asp","home800"," scrollbars=no width=" + s_width + ",height=" + s_heigh + ",top=" + t + ",left=" + l + "");
} 

if (s_width == "1024"){ 
window.open("home1024.asp","home1024"," scrollbars=no width=" + s_width + ",height=" + s_heigh + ",top=" + t + ",left=" + l + "");
} 

if (s_width == "1280"){ 
window.open("home1280.asp","home1280"," scrollbars=no width=" + s_width + ",height=" + s_heigh + ",top=" + t + ",left=" + l + "");
} 
}
 </script>
Sapreste dirmi incosa sbaglio?
Grazie mille!