. Firebug . ,
transparent , Safari Firefox 3.5, , RGBA. -, :
1. , non-js, :hover . :
<html class="no-js">
<head>
.... meta, title, link tags ...
<script type="text/javascript">document.documentElement.className = "js";</script>
.... other scripts ...
</head>
no-js js, .
2. jQuery a (js, 3)
CSS :
.js .iconrow { background: none !important }
.iconfader {
position: absolute;
display: block;
left: 0;
top: 0;
width: 100%;
height: 100%;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
background-color: #ccc;
z-index: 5;
}
.iconrow { position: relative }
.iconrow a { position: relative; z-index: 10}
3. mouseenter mouseleave
$('.iconrow').each(function(){
var $span = $("<span class='iconfader'></span>").css('opacity',0.0).appendTo(this);
$(this).hover(function(){
$span.stop().animate({opacity: 0.8}, 200);
}, function(){
$span.stop().animate({opacity: 0.0}, 200);
});
});
, , . IE7 IE8 24- PNG . .