<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<style>
.image {width: 50px; height: 50px; background-color: #333; margin: 0 2px; display: inline-block;}
.image {opacity: 0.6;}
.image:hover, .image.active {opacity: 1;}
</style>
<span class="image"></span>
<span class="image"></span>
<script>
$('.image').click(function() {
$(this).toggleClass('active');
});
</script>