[CODE HTML] Immagine che si ingrandisce al passaggio del mouse, molto utile ed usato

« Older   Newer »
  Share  
view post Posted on 1/5/2010, 13:48

Group:
,,,..--::|| AMMINISTRATORE ||::--..,,,
Posts:
1,602
Location:
Scheda di rete

Status:


AMMINISTRAZIONE - MODIFICA COLORI E STILI


CODICE
<style type="text/css">

/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */

.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>



per la parte che va nel CSS:

in questa parte di codice

CODICE
.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;



puoi modificare il colore dello sfondo della immagine "grande" cambiando il colore adesso inserito "lightyellow" con un altro colore a tua scelta che deve essere in html o scritto in inglese.

questo da mettere in GESTIONI CODICI HTML nella sezione che preferisci:


CODICE
<a class="thumbnail" href="#thumb"><img src="link_img_piccola" border="0" /><span><img src="link_img_grande" /><br />scritta</span></a>
 
Web     Top
0 replies since 1/5/2010, 13:48   168 views
  Share