Visualizzazione dei risultati da 1 a 9 su 9
  1. #1

    [JS] Non vanno le scrollbar!!!!!!!!!!

    codice:
    <script type="text/javascript">
     <!--
     function Popup(apri) {
       var w = 400;
       var h = 400;
       var l = Math.floor((screen.width-w)/2);
       var t = Math.floor((screen.height-h)/2);
          window.open(apri,"","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l, "scrollbar=yes");
     }
     //-->
    </script>
    Qualcuno mi spiega xke nn si vedono le scrollbar???
    Help meee :P

  2. #2
    Reale_Augello
    Guest

    Devi...

    ... scrivere scrollbars, non scrollbar.

    Ciao !

  3. #3
    è vero ke stupido

    thx
    Help meee :P

  4. #4
    non vanno!!!!!!!!!!!!!!
    allora...la funzione della pagina con il link al popup è:
    codice:
    <script type="text/javascript">
     <!--
     function Popup(apri) {
       var w = 400;
       var h = 400;
       var l = Math.floor((screen.width-w)/2);
       var t = Math.floor((screen.height-h)/2);
          window.open(apri,"","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l, "scrollbars=yes");
     }
     //-->
    </script>
    Poi nel popup c' è una funziona x adattarlo automaticamente alla pagina:
    codice:
    <script LANGUAGE="JavaScript">
    function Adatta(){
      if(document.body.scrollHeight){
        H = document.body.scrollHeight+20
        W = document.body.scrollWidth+20
        imgW=0
        if(document.images[0])imgW = document.images[0].width+20
        W=(imgW>W)?imgW:W
        screenH = self.screen.availHeight
        screenW = self.screen.availWidth
        newH = (H<screenH) ? H : (screenH-20)
        newW = (W<screenW) ? W : (screenW-20)
        self.moveTo(Math.floor((screenW-newW)/2),Math.floor((screenH-newH)/2))
        self.resizeTo(newW,newH)
        xH = document.body.scrollHeight+20
        xW = document.body.scrollWidth+20
      }
    }
    </script>
    PERCHE NN VANNO??????

    Help meee :P

  5. #5
    Utente di HTML.it
    Registrato dal
    Mar 2006
    Messaggi
    4
    left=" + l, "scrollbar

    la virgola dentro le virgolette

  6. #6
    scusa ma nn capisco molto di js =D come dovrei scrivere?
    Help meee :P

  7. #7
    Reale_Augello
    Guest

    Sarebbe...

    ... così:

    codice:
    window.open(apri,"","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l + ",scrollbars=yes");
    Ciao !

  8. #8
    Utente di HTML.it
    Registrato dal
    Mar 2006
    Messaggi
    4
    window.open(apri,"","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l + ",scrollbars=yes");


    cmq left e top vannno solo x ie.
    devi usare screenX e screenY (anche!)

  9. #9
    Grazie adesso le ho testate ( ) e vanno =D

    grazie e alla prossima
    Help meee :P

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 © 2026 vBulletin Solutions, Inc. All rights reserved.