Example

Style 1
Style 2

Code

Style 1:
.transparency:hover {
    opacity:0.5;	
}


Style 2:
.transparency1 {
    opacity:0.5;	
}
.transparency1:hover {
    opacity:1;	
}