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

    Ingrandire immagini al passaggio del mouse

    Ciao a tutti. Avrei un problemino. io ho un codice html per far si che delle icone si ingrandiscano al passaggio del mouse. Il problema è che dovrebbero ingrandirsi al passaggio del mouse. Ma questo non succede, ovviamente! C'è qualcuno per favore che mi sa dire come posso risolvere il mio problema.
    Forse è un problema di modelli?!?
    Help me, please!!!
    =)

  2. #2
    Si può vedere il codice?
    CODENCODE \ Branding \ Design \ Marketing
    www.codencode.it

  3. #3
    certo,
    <style type="text/css">

    .thumbnail{
    position: relative;
    z-index: 0;
    }

    .thumbnail:hover{
    background-color: transparent;
    z-index: 50;
    }

    .thumbnail span{ /*CSS for enlarged image*/
    position: absolute;
    background-color: lightyellow;
    padding: 5px;
    left: -1000px;
    border: 1px dashed gray;
    visibility: hidden;
    color: black;
    text-decoration: none;
    }

    .thumbnail span img{ /*CSS for enlarged image*/
    border-width: 0;
    padding: 2px;
    }

    .thumbnail:hover span{ /*CSS for enlarged image on hover*/
    visibility: visible;
    top: 0;
    left: 60px; /*position where enlarged image should offset horizontally */

    }

    </style>

    ---> e per l'immagine,

    <a class="thumbnail" href=><img src=immagine miniatura width="16px" height="53px" border="0" /><span><img src=immagine ingrandita />
    testo</span></a>

  4. #4
    Amministratore L'avatar di Vincent.Zeno
    Registrato dal
    May 2003
    residenza
    Emilia-Romagna (tortellini und cappelletti land!)
    Messaggi
    20,783
    NOTA TECNICA

    POSTARE CODICE

  5. #5
    codice:
     <style type="text/css">
    
    .thumbnail{
    position: relative;
    z-index: 0;
    }
    
    .thumbnail:hover{
    background-color: transparent;
    z-index: 50;
    }
    
    .thumbnail span{ /*CSS for enlarged image*/
    position: absolute;
    background-color: lightyellow;
    padding: 5px;
    left: -1000px;
    border: 1px dashed gray;
    visibility: hidden;
    color: black;
    text-decoration: none;
    }
    
    .thumbnail span img{ /*CSS for enlarged image*/
    border-width: 0;
    padding: 2px;
    }
    
    .thumbnail:hover span{ /*CSS for enlarged image on hover*/
    visibility: visible;
    top: 0;
    left: 60px; /*position where enlarged image should offset horizontally */
    
    }
    
    </style>

  6. #6
    Ciao,
    a me il tuo codice funziona, sia su IE che su FF.
    Ho solo aggiunto dei doppi apici all'href del tag a.
    Magari era quello il problema.
    Comunque il codice che ho usato è questo:


    codice:
    <html>
    
    <head>
    
     <style type="text/css">
    
    .thumbnail{
    position: relative;
    z-index: 0;
    }
    
    .thumbnail:hover{
    background-color: transparent;
    z-index: 50;
    }
    
    .thumbnail span{ /*CSS for enlarged image*/
    position: absolute;
    background-color: lightyellow;
    padding: 5px;
    left: -1000px;
    border: 1px dashed gray;
    visibility: hidden;
    color: black;
    text-decoration: none;
    }
    
    .thumbnail span img{ /*CSS for enlarged image*/
    border-width: 0;
    padding: 2px;
    }
    
    .thumbnail:hover span{ /*CSS for enlarged image on hover*/
    visibility: visible;
    top: 0;
    left: 60px; /*position where enlarged image should offset horizontally */
    
    }
    
    </style>
    
    </head>
    <body>
    
    <a class="thumbnail" href="">
       [img]thumb.JPG[/img]
       <span>
       [img]full.JPG[/img]
       
    
       testo
       </span>
    </a>
    
    </body>
    </html>
    La democrazia rappresentativa ha fatto il suo tempo, è ora di passare alla democrazia diretta.
    www.beppegrillo.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.