Visualizzazione dei risultati da 1 a 5 su 5
  1. #1
    Utente di HTML.it
    Registrato dal
    Feb 2001
    Messaggi
    89

    Disabilitare tasti quando apro popup

    Scusate l'oggetto poco chiaro...
    Ma cerco di spiegarmi meglio...
    Posso secondo voi disabilitare alcuni tasti di una finestra che apro in questo modo??

    Apri Finestra</big>

    Praticamente metto dentro questa finestra dei file con non hanno html(swf, word, ect )... quindi non posso mettere dentro la popup il codice che mi impedisca di agire sul tasto f5 per esempio.
    Quello che io chiedo è... si può mettere un codice che mi impedisce di premere su un tasto direttaemnte dal link?
    oppure pensate sia impossibile?
    Ciao a tutti
    Giuseppe R.
    "Nella vita non si è mai fermi o si va avanti o... si va indietro"

  2. #2
    hai risolto il tuo problema?ho lo stesso se si fammi sapere
    Consulenza aziendale a 360° http://www.gruppodg.it http://www.gruppodg.it/3d
    Realizzazione siti internet, Siti Flash, Ricerca Location per bar negozi , esercizi commerciali, sviluppo pratiche e allestimento

  3. #3
    Utente di HTML.it
    Registrato dal
    Feb 2001
    Messaggi
    89

    no....

    purtroppo no... speravo nell'aiuto di qualcuno ma niente da fare.... se ci riesci tu fammi sapere...
    "Nella vita non si è mai fermi o si va avanti o... si va indietro"

  4. #4

    Re: no....

    Originariamente inviato da girub
    purtroppo no... speravo nell'aiuto di qualcuno ma niente da fare.... se ci riesci tu fammi sapere...
    questo fa rimanere la scrollbar ma elimina la riga blu della x, provalo e vedi se può fare al caso tuo, a me è servito, ciao
    Consulenza aziendale a 360° http://www.gruppodg.it http://www.gruppodg.it/3d
    Realizzazione siti internet, Siti Flash, Ricerca Location per bar negozi , esercizi commerciali, sviluppo pratiche e allestimento

  5. #5

    Re: Re: no....

    Originariamente inviato da enigma_79
    questo fa rimanere la scrollbar ma elimina la riga blu della x, provalo e vedi se può fare al caso tuo, a me è servito, ciao
    STEP 1.
    Inserting the <script> in your page
    Put the following <script> </script> in the head
    section of your launching page.
    Set the variables as indicated in the script.
    <script>
    // Amazing Frameless Popup Window - Version I
    // (C) 2000 www.CodeLifter.com (http://www.codelifter.com/)
    // Free for all users, but leave in this header
    // set the popup window width and height
    var windowW=214 // wide
    var windowH=398 // high
    // set the screen position where the popup should appear
    var windowX = 260 // from left
    var windowY = 100 // from top
    // set the url of the page to show in the popup
    var urlPop = "yourpage.html"
    // set the title of the page
    var title = "This Is A Frameless Popup Window"
    // set this to true if the popup should close
    // upon leaving the launching page; else, false
    var autoclose = true
    // ============================
    // do not edit below this line
    // ============================
    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>
    ================================================== ============
    STEP 2.
    Triggering the popup window
    Call the openFrameless function from a link, like this:
    click here
    ================================================== ============
    STEP 3.
    Conditioning the page that goes in the popup window
    Add the following call to the <body> tag of the page that
    will open in the popup *if* your popup does not come to the
    front after it loads. This is occasionally needed in early
    versions of IE4, and with certain types of page content that
    manipulate focus. If in doubt, put it in -- it can't hurt.
    <body onload="top.window.focus()">
    ================================================== ============
    ADDENDUM 2/22/2001
    Making the Frameless Popup Center on the Screen Automatically
    We've had numerous requests for this, and a minor modification
    of the script can do it. Here's how...
    Comment out the two lines as shown, and add the two shown below
    them.
    // set the screen position where the popup should appear
    //var windowX = 260 // from left
    //var windowY = 100 // from top
    var windowX = (screen.width/2)-(windowW/2);
    var windowY = (screen.height/2)-(windowH/2);
    Consulenza aziendale a 360° http://www.gruppodg.it http://www.gruppodg.it/3d
    Realizzazione siti internet, Siti Flash, Ricerca Location per bar negozi , esercizi commerciali, sviluppo pratiche e allestimento

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.