IE7-8 png on hover
IE7-8 png on hover
Hello,
I can't find a way to fix this.
Let's start with the code.
HTML
- <div id="showcase_home">
- <div class="shop"><a class="shop_hover" href="?page=shop"></a></div>
- </div> <!-- END showcase_home -->
CSS
- .shop_hover{
- background: url(img/shop_hover.png) no-repeat top;
- width: 290px;
- height:230px;
- display:block;
- padding:0;
- margin:0;
- }
- div#showcase_home div.shop{
- background:url(img/shop.png) no-repeat top;
- margin-right:0;
- }
Jquery
- 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)
- }
-
- );
- }
Basically is to fadeIn an image over another on hover, in IE7-8 the hover png image loses transparency showing black instead. I tried several fixes, the only one that worked was DD.roundies but, big BUT, the <a> link is not clickable anymore in fact that fix also breaks a lot of css rules applied to that element.
I'm wondering if anyone has a solution or if this is jquery's "fault".
thanks