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

    'resizable' per pop-up al centro

    salve a tutti,
    devo aprire delle immagini in pop-up al centro, ho provato questo script e funziona, ma la vorrei ridimensionabile (resizable=yes ...)
    Dove lo devo aggiungere? O meglio COME FACCIO???

    <SCRIPT LANGUAGE="javascript">
    function popup(url, width, height)
    {
    if (document.all)
    {
    var x = window.screenLeft;
    var y = window.screenTop;
    var w = window.document.body.offsetWidth;
    var h = window.document.body.offsetHeight;
    }
    else
    {
    var x = window.screenX;
    var y = window.screenY;
    var w = window.outerWidth;
    var h = window.outerHeight;
    }
    var cntx = x + Math.round((w - width) / 2);
    var cnty = y + Math.round((h - height) / 2);
    window.open (url, null, 'left=' + cntx + ',top=' + cnty + ',width=' +
    width + ',height=' + height);
    }
    </SCRIPT>

    RICHIAMO:

    Apri popup

    :master:

  2. #2
    alla fine di window.open, prima delle virgolette di kiusura metti

    ',resizable=1'


    cioe'


    width + ',height=' + height + ',resizable=1');
    DYNAMIC+ [ E-mail ]

    Secondo me non si può fare!

  3. #3
    Perfetto! Mille grazie!!

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.