Visualizzazione dei risultati da 1 a 4 su 4

Discussione: prototype

  1. #1

    prototype

    kon flash 5 nn si usava dare questa as dall'interno del movie per aprire una pop up ?

    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="+l ar+",height="+alt+",screenX=' + x + ',left=' + x + ',screenY=' + y + ',top=' + y + ',"+feat+"');void(0);");};

    kome mai ora MX nn apre la pop up e dice ke c'è un errore?
    sapete dirmi il kodice giusto?

  2. #2

  3. #3
    fatto kosì ma dice ke c'è un errore:

    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('p2.html','titolo',900,500,'status=yes');

    c'è?

  4. #4
    avevi ragione ho capito l'errore.
    grazie

    have a nice day

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.