Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
jQuery IE fadeIn .png bug
Old 07-22-2009, 10:25 AM jQuery IE fadeIn .png bug
pealo86's Avatar
Super Spam Talker

Posts: 850
Name: Matt Pealing
Location: England, north west
Trades: 0
I'm using the following code to fade in a div that uses a transparent .png background:

Code:
$("#gallery .client").hover (function () {
    $.tipText = 'Click the image to enlarge it';
    $.tip = $(document.createElement("div")).attr("class","tip").text($.tipText).prependTo(this);
    $.tip.fadeIn (800);
}, function () {
    $.tip.fadeOut ();
});
Unsurprisingly IE7 has a problem with it, it fades the div to 100% opacity before instantly making it appear the way it should.

I've read that the problem can be fixed by using fadeTo instead, but I've tried that and my div just doesn't appear at all! Argghhh!

Any help would be great.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
pealo86 is online now
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 07-22-2009, 10:32 AM Re: jQuery IE fadeIn .png bug
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Nothing you can do there that I know of. Fading relies on alpha transparency. IE7 has big problems when you set transparency on an 24bit PNG image that already has transparency built into it. If you find a solution I'd be happy to hear it; my only one is to avoid the situation.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-22-2009, 10:46 AM Re: jQuery IE fadeIn .png bug
pealo86's Avatar
Super Spam Talker

Posts: 850
Name: Matt Pealing
Location: England, north west
Trades: 0
Nooooooooo!

Thanks anyway, any ideas why the fadeTo method might not be working?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
pealo86 is online now
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 07-22-2009, 11:33 AM Re: jQuery IE fadeIn .png bug
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
As far as I know, fadeTo is no different than fadeIn: If I were to build it myself I would use the same technique. Not sure about that one though, I haven't looked at that section of code inside of jQuery itself.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-22-2009, 06:07 PM Re: jQuery IE fadeIn .png bug
pealo86's Avatar
Super Spam Talker

Posts: 850
Name: Matt Pealing
Location: England, north west
Trades: 0
Thanks for the advice, I'll probably just have to change the appearance of what Im doing to get it right in all browsers... thanks to Bill Gates once more!
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
pealo86 is online now
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Reply     « Reply to jQuery IE fadeIn .png bug
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.36477 seconds with 12 queries