Visualizzazione dei risultati da 1 a 3 su 3

Discussione: Scrollbars per pop up

  1. #1
    Utente di HTML.it
    Registrato dal
    Sep 2004
    Messaggi
    8

    Scrollbars per pop up

    Vorrei che nelle finestre pop up che compaiono dopo il click ci fossero le scrollbar....
    Il problema dovrebbe essere di facile risoluzione, ma ho a che fare con un codice dove non so cosa scrivere.....eccolo:

    function centra(url, width, height)
    {
    if (document.all)
    {
    var x = window.screenLeft;
    var y = window.screenTop;
    var w = window.document.body.offsetWidth;
    var h = window.document.body.offsetHeight;
    }
    else
    {
    var x = window.screenX;
    var y = window.screenY;
    var w = window.outerWidth;
    var h = window.outerHeight;
    }
    var cntx = x + Math.round((w - width) / 2);
    var cnty = y + Math.round((h - height) / 2);
    window.open (url, null, 'left=' + cntx + ',top=' + cnty + ',width=' +
    width + ',height=' + height);
    } //-->


    e questo è il riferimento nella pagina:
    2004</td>

    dove devo inserire il comando per visualizzare le scrollbar?
    Le scrollbar si attivano comunque o solo quando i dati sono superiori al valore prefissato dalla finestra (560,600)?
    Grazie a tutti per l'eventuale aiuto......
    Oh my god! They killed Kenny!
    YOU BASTARDS!

  2. #2
    codice:
     window.open (url, null, 'left=' + cntx + ',top=' + cnty + ',width=' +
    width + ',scrollbars=yes,height=' + height);
    ciao

  3. #3
    Utente di HTML.it
    Registrato dal
    Sep 2004
    Messaggi
    8
    Grazie mille........perfetto!!!!
    Oh my god! They killed Kenny!
    YOU BASTARDS!

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.