Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    Popup e ridimensionamento!

    Utilizzo questa funzione per far aprire una finestra popup centrata nello schermo, tutto funziona regolarmente ma c è un problema che infastidisce alcuni utenti.
    Questa funzione apre a tutto schermo come se venisse premuto il tasto "ingrandisci" del browser di navagazione è possibile evitare tutto questo?!!

    questa è la funzione che uso:

    <SCRIPT LANGUAGE="JavaScript">
    <!--
    var win=null;
    function Popup(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.rand om()*((screen.height-h)-75)):100;}
    if(pos=="center"){myleft=(screen.width)?(screen.wi dth-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-5) + ",scrollbars=no,location=no,directories=no,status= no,menubar=no,toolbar=no,resizable=no";win=window. open(mypage,myname,settings);
    win.focus();}
    top.window.moveTo(0,0);
    if (document.all) {
    top.window.resizeTo(screen.availWidth,screen.avail Height);
    }
    else if (document.layers||document.getElementById) {
    if (top.window.outerHeight<screen.availHeight||top.wi ndow.outerWidth<screen.availWidth){
    top.window.outerHeight = screen.availHeight;
    top.window.outerWidth = screen.availWidth;
    }
    }
    // -->
    </script>


  2. #2

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.