Red_Henry Inviato 10 Dicembre 2007 Segnala Condividi Inviato 10 Dicembre 2007 Ho inserito uno script per l'apertura di un pop_up in centro pagina ma non capisco perchè mi si apre una finestra molto più grande di quella richiamata: ---------------------------- script prima chiusura head ------------------------- <script> function indietro() { if (navigator.appName == "Netscape") {window.back()} else {history.back(1)} } //--> </script> <SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'> <!-- var win=null; function NewWindow(mypage,myname,w,h,pos,infocus){ if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;} else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20} settings="width=" + w + ",height=" + h + ",top=" + (mytop-30) + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings); win.focus();} // --> </script> -------------------- linkatura per apertura pop up ---------------------- javascript:NewWindow('nomepagina.asp','gallery',300,500,'center','front'); Succede sia con explore, safari e mozilla.... AIUTTT !!! Link al commento Condividi su altri siti Altre opzioni di condivisione...
Messaggi raccomandati
Archiviato
Questa discussione è archiviata e chiusa a future risposte.