Visualizzazione dei risultati da 1 a 5 su 5

Discussione: Aprire Pop-up Centrato

  1. #1

    Aprire Pop-up Centrato

    Ciao a tutti,

    vorrei sapere che comando dare al bottone , per fare aprire un JPG in una nuova finestra centrata e delle dimensioni dell' immagine!

    Per default il sistema mi apre la finestra intera e nn dimensionata!

  2. #2
    qui serve javascript...

    potresti usare una cosina così:
    function openPop(){
    var a = 300
    var b = 150
    var w = screen.width
    var h = screen.height
    var sx= ((w-a)/2)
    var su = ((h-b)/3)
    x = "width="+a+",height="+b+",left="+sx+",top="+su
    window.open('', 'formPop', x);
    }

    e poi richiamarla da FLash con getURL();

  3. #3
    sono un principiante di flash.
    dove inserisco il codice java e come faccio poi a richiamarlo in flash, nella get URL?
    grazie

  4. #4
    Come faccio ad aprire una popup da flash?

    http://flash-mx.html.it/faq/view_faq.asp?idcat=8&id=22


    Consultare mx a volte fa bene. leggi le varie soluzioni

    Ciao

  5. #5
    Utente di HTML.it L'avatar di Seba72
    Registrato dal
    Jun 2002
    Messaggi
    54
    SCRIPT SU PUL FLASH
    on (release) {
    getURL("javascript:apriPopupCentrata('123.htm', 'HTML', 760, 500, 'status=yes, toolbar=yes,scrollbars=yes,')");
    }
    Script su HTML
    <SCRIPT language=JavaScript type=text/JavaScript>
    <!--
    function apriPopupCentrata(nome, titolo, lar, alt, feat){
    var wdt = screen.width;
    var hgt = screen.height;
    var x = Math.round( (wdt / 2) - (lar / 2) );
    var y = Math.round( (hgt / 2) - (alt / 2) );
    window.open(nome, titolo, 'width=' + lar + ',height=' + alt + ',left=' + x + ',screenX=' + x + ',top=' + y + ',screenY=' + y + ',' + feat);
    }
    //-->
    </SCRIPT>

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.