My image does not load on a jQuery fade in effect even though the div loads.

Posted by Konstantin on Stack Overflow See other posts from Stack Overflow or by Konstantin
Published on 2010-12-25T07:14:17Z Indexed on 2010/12/25 13:54 UTC
Read the original article Hit count: 228

Filed under:
|
|
|
|
jQuery(document).ready(function()
{
 if (useMSIE){
 pngfixALL();
 };
 jQuery(div).show(data_fadeInEffect, 500);return false; 


 // jQuery(div).animate({opacity:1}, 500, 'linear'); 
}); 

This is what I have for a fade in effect. When using animate(), the image in the div tag fades in fine. However, when I use show(), the div loads because I can click in that area, but the image itself doesn't load. Why is this happening?

I have another area of the code where I click on an 'x' in the image and it fades out using hide(). This works fine.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about image