Visualizzazione dei risultati da 1 a 7 su 7

Discussione: Modifica script pop-up

  1. #1

    Modifica script pop-up

    salve a tutti

    Ho questo script :


    <script language="javascript">
    var win = null;
    function NewWindow(mypage,myname,w,h,t,l,scroll) {
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/6 : 0;
    T = TopPosition + t;
    L = LeftPosition + l;
    settings = 'height=' + h + ',width=' + w + ',top=' + T + ',left=' + L + ',scrollbars=' + scroll + ',resizable=no';
    win = window.open(mypage,myname,settings)}

    </script>




    onclick="NewWindow(this.href,'moto',300,400,90,90, 'yes');return

    false



    vorre inserirgli nei parametri nella chiamata la possibilita' di scegliere se visualizzare o meno il menubar.

    grazie !
    non si finisce mai di imparare !

    www.motogatti.it

  2. #2
    Utente di HTML.it
    Registrato dal
    Dec 2001
    Messaggi
    3,259
    prova... cosi...

    menu puo essere yes o no, un po come scroll



    <script language="javascript">
    var win = null;
    function NewWindow(mypage,myname,w,h,t,l,scroll,menu) {
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/6 : 0;
    T = TopPosition + t;
    L = LeftPosition + l;
    settings = 'height=' + h + ',width=' + w + ',top=' + T + ',left=' + L + ',scrollbars=' + scroll + ',resizable=no,menubar='+menu;
    win = window.open(mypage,myname,settings)}

    </script>


  3. #3

    grazie per l'intervento. ..

    non funge :quipy:


    a te si ?
    non si finisce mai di imparare !

    www.motogatti.it

  4. #4
    Utente di HTML.it
    Registrato dal
    Dec 2001
    Messaggi
    3,259
    Originariamente inviato da Dennis
    prova... cosi...

    menu puo essere yes o no, un po come scroll



    <script language="javascript">
    var win = null;
    function NewWindow(mypage,myname,w,h,t,l,scroll,menu) {
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/6 : 0;
    T = TopPosition + t;
    L = LeftPosition + l;
    settings = 'height=' + h + ',width=' + w + ',top=' + T + ',left=' + L + ',scrollbars=' + scroll + ',resizable=no,menubar='+menu;
    win = window.open(mypage,myname,settings)}

    </script>

    ... nn ho testato...

    forse cosi???

    <script language="javascript">
    var win = null;
    function NewWindow(mypage,myname,w,h,t,l,scroll,menu) {
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/6 : 0;
    T = TopPosition + t;
    L = LeftPosition + l;
    settings = 'height=' + h + ',width=' + w + ',top=' + T + ',left=' + L + ',scrollbars=' + scroll + ',resizable=no,'+(menu=='yes')?'menubar':''
    win = window.open(mypage,myname,settings)}

    </script>

  5. #5

    ...

    neanche. . .
    non si finisce mai di imparare !

    www.motogatti.it

  6. #6
    Utente di HTML.it
    Registrato dal
    Dec 2001
    Messaggi
    3,259

    Re: ...

    Originariamente inviato da iz8eej
    neanche. . .
    <script language="javascript">
    var win = null;
    function NewWindow(mypage,myname,w,h,t,l,scrolla,menu) {
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/6 : 0;
    T = TopPosition + t;
    L = LeftPosition + l;
    settings = 'height=' + h + ',width=' + w + ',top=' + T + ',left=' + L + ',scrollbars=' + scrolla + ',resizable=no,menubar='+menu;
    win = window.open(mypage,myname,settings)
    }
    </script>


    che ha che non va?

    settando bene tutto dovrebbe funzionare

  7. #7

    si...

    ora funziona perfettamente , molte grazie !!!!

    non si finisce mai di imparare !

    www.motogatti.it

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.