Visualizzazione dei risultati da 1 a 4 su 4

Discussione: Pagine e pop up

  1. #1
    Utente di HTML.it
    Registrato dal
    Mar 2001
    Messaggi
    42

    Pagine e pop up

    Saludos a tutti!
    Il mio obbiettivo č quello di pubblicare un filmato di 800x350px centrato e possibilmente senza i pulsanti del browser. Ho provato con questo script ma non va una bega.
    Sapete dirmi dove sta l'inghippo?


    <html>
    <head>
    <script>

    var windowW=800// larghezza della pop up
    var windowH=350// altezza della pop up

    var windowX = (screen.width/2)-(windowW/2);
    var windowY = (screen.height/2)-(windowH/2);



    var urlPop = "progetto.html" // pagina da aprire

    var title = "progetto" // titolo della popup
    var autoclose = true
    s = "width="+windowW+",height="+windowH;
    var beIE = document.all?true:false

    function openFrameless(){
    if (beIE){
    NFW = window.open("","popFrameless","fullscreen,"+s)
    NFW.blur()
    window.focus()
    NFW.resizeTo(windowW,windowH)
    NFW.moveTo(windowX,windowY)
    var frameString=""+
    "<html>"+
    "<head>"+
    "<title>"+title+"</title>"+
    "</head>"+
    "<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
    "<frame name='top' src='"+urlPop+"' scrolling=auto>"+
    "<frame name='bottom' src='about:blank' scrolling='no'>"+
    "</frameset>"+
    "</html>"
    NFW.document.open();
    NFW.document.write(frameString)
    NFW.document.close()
    } else {
    NFW=window.open(urlPop,"popFrameless","scrollbars, "+s)
    NFW.blur()
    window.focus()
    NFW.resizeTo(windowW,windowH)
    NFW.moveTo(windowX,windowY)
    }
    NFW.focus()
    if (autoclose){
    window.onunload = function(){NFW.close()}
    }
    }

    </script>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body bgcolor="#000066" text="#FFFFFF">


    </p>


    </p>


    </p>


    </p>
    <p align="center">Entra</p>
    </body>
    </html>



  2. #2
    Visto che la prima pagina cmq non la puoi modificare e ne rilanci un'altra lancia una pop-up mediante un pulsante Flash (ad esempio)



    on (release) {
    getURL ("javascript:window.open('tuapagina.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);");
    }

    nella frame che contiene il pulsante inserisci questo codice
    wdth=300; // larghezza pop-up
    hdth=300; // altezza pop-up

    se la vuoi rilanciare direttamente in html prendi da
    javascript:window.open('tuapagina.html','nName','w idth=" add wdth add ",height=" add hdth add ",top='+((screen.availHeight/2)-(" add hdth/2 add "))+',left='+((screen.availWidth/2)-(" add wdth/2 add "))


    e sostituisci a wdth e hdth i valori che vuoi.

    Ciao

  3. #3
    Utente di HTML.it
    Registrato dal
    Mar 2001
    Messaggi
    42

    aspetta nun scappā!

    Grazie, mo provo!
    Scusa le domande da somaro ma:
    on (release)č riferito ad un pulsante in fla?
    quando parli di frame ti riferisci a che?

    Muuuuuuuuuu sono una bestia, scusa!



    on (release) {
    getURL ("javascript:window.open('tuapagina.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);");
    }

    nella frame che contiene il pulsante inserisci questo codice
    wdth=300; // larghezza pop-up
    hdth=300; // altezza pop-up

    se la vuoi rilanciare direttamente in html prendi da
    javascript:window.open('tuapagina.html','nName','w idth=" add wdth add ",height=" add hdth add ",top='+((screen.availHeight/2)-(" add hdth/2 add "))+',left='+((screen.availWidth/2)-(" add wdth/2 add "))


    e sostituisci a wdth e hdth i valori che vuoi.
    on (release) frame

  4. #4
    Utente di HTML.it
    Registrato dal
    Mar 2001
    Messaggi
    42

    porcazz! funziona!

    yuppii funziona!

    grazie di cuore, a buon rendere!

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.