Because I was using 100 instead of 1 for the fadeTo, IE was not interpreting
it correctly and after swithing everywhere it says "1" from "100", the
images correctly fade in IE.


ixxalnxxi wrote:
> 
>  http://teamtalkonline.com/marco/gallery.php bug here 
> 
> Using windows xp and FF3, the fade works as intended to, however in IE 7
> and windows xp the fade instead delays then throws the opacity on there at
> once, rather than a smooth transition. code:
> 
>                       if(!$(this).hasClass("active"))
>                       {
>                               //remove the current active thumbnail
>                               $("img.active").stop().fadeTo("slow", 
> .33).removeClass("active");
>                               
>                               //show this thumbnail as active
>                               $(this).stop().fadeTo("slow", 100);
>                               $(this).addClass("active");
>                               
>                               //create an img
>                               var new_image = 
> $(document.createElement("img"));
>                               new_image.attr("src", 
> $(this).attr("src").replace("gif", "jpg"));
>                               
>                               //remove current image 
>                               $("#image").children("img").remove();
>                               
>                               //append the new image to the #image div
>                               $("#image").append(new_image.fadeIn("slow"))
>                       } http://teamtalkonline.com/marco/gallery.php
> http://teamtalkonline.com/marco/gallery.php 
> 

-- 
View this message in context: 
http://www.nabble.com/IE-not-fading-correctly-tp22286966s27240p22323812.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to