Visualizzazione dei risultati da 1 a 3 su 3

Discussione: apertura pop up su mac

  1. #1
    Utente di HTML.it
    Registrato dal
    Oct 2001
    Messaggi
    11

    apertura pop up su mac

    Voglio aprire delle pop up direttamente da flash ed ho usato questo metodo nel primo frame:
    Movieclip.prototype.centra = function(nome,titolo,lar,alt,feat){
    getURL("javascript:var x = Math.round((screen.width/2)-(" + lar + "/2));var y=((screen.height/2)-(" + alt + "/2));window.open('" + nome + "','" + titolo + "','width=" + lar + ",height=" + alt + ",screenX=' + x + ',left=' + x + ',screenY=' + y + ',top=' + y + '," + feat + "');void(0);");
    }
    al mc pulsante:
    _root.centra('1024.htm','titolo',960,600,'');

    il mio problema è questo su piattaforme win funziona bene su mac mi lascia dei grossi bordi bianchi a destra e in basso, nel tag body html della pagina ho aggiunto anche:

    leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

    ed il filmato l 'ho inserito al 102% invece che con le dimensioni reali come posso fare qualcuno sa aiutarmi grazie mille

  2. #2

  3. #3
    Io l'ho fatta così, mettendo lo script sul pulsante:

    on (release) {
    getURL ("javascript:window.open('NOMEPAGINA.html','nName' ,'width=" add wdth add ",height=" add hdth add ",top='+((screen.availHeight/2)-(" add hdth/2 add "))+',left='+((screen.availWidth/2)-(" add wdth/2 add "))); void(0);");}

    sulla _root (parlo del livello del movie dove hai messo gli script) metti:

    wdth = "600";
    hdth = "800";

    Per impostare la dimensione.

    Va bene sul mac (ci lavoro) e anche su PC (l'ho testato)
    Ciao gianna
    Se il mondo gira a destra ... io voglio andare a sinistra per coglierlo di sorpresa quando lo rincontro.

    Personal site: www.gpgraph.net

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.