Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 12

Discussione: Problema Scrollbar

  1. #1
    Utente di HTML.it
    Registrato dal
    Apr 2008
    Messaggi
    155

    Problema Scrollbar

    ciao a tutti,
    ho il seguente problema:
    ho inserito questo codice js per fare in modo di poter aprire delle pagine come se fossero pop up:

    codice:
    <script language="JavaScript">
    function apri(url, w, h, s) {
    var windowprops = "width=" + w + ",height=" + h + ",scrollbars=" + s;
    popup = window.open(url,'remote',windowprops);
    }
    </script>

    nel link richiamo la funzione in questo modo:

    codice:
    <a href="JavaScript:apri('storia.html','680','700','1');" class="link">
     							<div align="center" class="Stile5 Stile6">.:La Storia:.</div>
                    		</a>

    il problema è che quando clicco mi si apre sì il popup ma non c'è traccia della scrollbar verticale...probabilmente ho sbagliato qualcosa...ma cosa?


    Vi ringrazio anticipatamente!

  2. #2
    Utente di HTML.it
    Registrato dal
    Dec 2010
    Messaggi
    3,660
    prova a valorizzare la variabile s con la stringa "yes"

  3. #3
    Utente di HTML.it
    Registrato dal
    Apr 2008
    Messaggi
    155
    cioè? scusa ma nn sono molto pratico con js....

  4. #4
    Utente di HTML.it
    Registrato dal
    Dec 2010
    Messaggi
    3,660
    codice:
    <a href="java-script:apri('storia.html','680','700','yes');" class="link">
     							<div align="center" class="Stile5 Stile6">.:La Storia:.</div>
                    		</a>

  5. #5
    Utente di HTML.it
    Registrato dal
    Apr 2008
    Messaggi
    155
    ho provato e non funziona

  6. #6
    Utente di HTML.it
    Registrato dal
    Dec 2010
    Messaggi
    3,660
    funziona se l'altezza del contenuto della pagina è maggiore dell'altezza della pagina definita nel codice(700)... l'ho provato con firefox 3.6 e explorer 7

  7. #7
    Utente di HTML.it
    Registrato dal
    Apr 2008
    Messaggi
    155
    ho provato a mettere come valore 400, il contenuto della pagina è ben superiore alla dimensione..
    ho provato a visualizzarlo in safari, firefox e explorer (tutti aggiornati all'ultima versione) senza risultati..

  8. #8
    Utente di HTML.it
    Registrato dal
    Dec 2010
    Messaggi
    3,660
    ho provato ora con safari e funziona anche li... forse dipende dal contenuto del popup prova a passarci il codice...

  9. #9
    Utente di HTML.it
    Registrato dal
    Apr 2008
    Messaggi
    155
    ecco il codice della pagina popup

    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style type="text/css">
    <!--
    .Stile1 {
    	color: #999999;
    	font-weight: bold;
    	font-size: medium;
    }
    -->
    </style>
    <link href="stile.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    .Stile2 {color: #07367c}
    -->
    </style>
    </head>
    
    <body bgcolor="#000000" {overflow-y:1}>
    <table>
    	<tr>
        	<td>
            	<div align="justify" ><span class="Stile1 Stile2">TESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTO</a></span></div>        </td>
      </tr>
        <tr>
        	<td>
            	<div align="center">[img]images/2010Tripletegruppo.JPG[/img]
       	        </div></td>
        </tr>   
    </table>
    
      
      
    
    </body>
    </html>

  10. #10
    Utente di HTML.it
    Registrato dal
    Dec 2010
    Messaggi
    3,660
    si il problema è quasi sicuramente della tua pagina... probabilmente è la proprietà justify del div...

    prova a modificare la pagina cosi:

    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style type="text/css">
    <!--
    .Stile1 {
    	color: #999999;
    	font-weight: bold;
    	font-size: medium;
    }
    -->
    </style>
    <link href="stile.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    .Stile2 {color: #07367c}
    -->
    </style>
    </head>
    
    <body bgcolor="#000000" {overflow-y:1}>
    <table>
    	<tr>
        	<td>
            	<div align="justify" ><span class="Stile1 Stile2">TESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTOTESTO</span></div>        </td>
      </tr>
        <tr>
        	<td>
            	<div align="center">[img]images/2010Tripletegruppo.JPG[/img]
       	        </div></td>
        </tr>   
    </table>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      
     
    
    
    
    
    
    
    
    
    
    
    
    
     
    
    </body>
    </html>

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.