Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it L'avatar di fatlox
    Registrato dal
    Sep 2001
    Messaggi
    48

    popUp ridimensionabile...con funzione centra

    Salve,
    sto utilizzando il prototype di flash-mx.it per aprire i popup centrati da flash:

    MovieClip.prototype.centra = function(nome,titolo,lar,alt,feat){
    var w = System.capabilities.screenResolutionX / 2;
    var h = System.capabilities.screenResolutionY / 2;
    var x = Math.round(w - ( lar / 2 ));
    var y = Math.round(h - ( alt / 2 ));
    getURL("javascript:window.open('"+ nome + "','" + titolo + "','width=" + lar + ",height=" + alt + ",screenX=" + x + ",left=" + x + ",screenY=" + y + ",top=" + y + "," + feat + "');void(0);");
    };

    on(release){
    centra('test.html','mia',700,300,'status=yes');
    }


    C'è però una modifica che non riesco proprio a fare...i popup che si aprono con questa funzione hanno il resize bloccato (non sono ridimensionabili), io vorrei invece abilitare il pulsante per mettere il popup a tutto schermo...qualcuno conosce le modifiche che devo fare al prototipo??

    Grazie,Lox.

  2. #2
    Utente di HTML.it L'avatar di negatyve
    Registrato dal
    Feb 2001
    Messaggi
    9,479
    codice:
    on(release){ 
    	centra('test.html','mia',700,300,'status=yes, resizable=yes');
    }

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.