function fadehomepage() {
//Set opacity to 0
$('#showcase_home > div > a').css({'opacity':'0'});
$('#showcase_home > div').hover(
function () {
var selected_div = $(this).attr("class") + "_hover";
$(this).find('.' + selected_div).stop().fadeTo(500, 1)
},
function () {
var selected_div = $(this).attr("class") + "_hover";
$(this).find('.' + selected_div).stop().fadeTo(300, 0)
}
);
}
the CSS example
div#showcase_home div.shop{
background:url(img/shop.png) no-repeat top;
margin-right:0;
}
.shop_hover{
background: url(img/shop_hover.png) no-repeat top;
width: 290px;
height:230px;
display:block;
padding:0;
margin:0;
}
both pngs have transparency. I don't care about IE6.
1) in IE7/IE8 on mouseover when shop_hover.png appears it doesn't have transparency, instead it shows black :S
2) why in IE if I set opacity below 1 for transparent pngs it loses transparency?
3) how long before I can code without losing friggin DAYS to fix IE problems only? P