469,632 Members | 1,622 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,632 developers. It's quick & easy.

jQuery PNG Fix - Not Working

32
Hello,

I've used the jQuery PNG fix on a website I'm working on, but the PNG images seem to be distorted "only sometimes" in IE6 and IE7. It seems to happen most often when the page is loaded for the first time, i.e., when the browser does not have a cache of the images yet.

The website in question is available at http://dev.akeenlabs.com/sharonlaing .

Has anyone run into this issue with this particular JavaScript solution or am I just doing something wrong?

jQuery PNG Fix: http://jquery.andreaseberhard.de/pngFix/

[EDIT] Here's a screenshot of the problem in question: http://dev.akeenlabs.com/png_fix_problem.jpg .[/EDIT]

Thanks
Apr 16 '08 #1
3 2927
pronerd
392 Expert 256MB
SInce it is only happening sometimes, I would guess the problem is with the plug-in, not your code, or the connection maybe getting cut off before all the code for the page has downloaded. Do you get an error?
Apr 16 '08 #2
poe
32
Na, no error. Is this same occurrence common with other proprietary filter-related PNG fixes?

I contacted the writer of the png fix and he recommended specifying the height and width of the image in the tag itself. This seems unnecessary, but it seems to fix the problem.
Apr 16 '08 #3
acoder
16,027 Expert Mod 8TB
It might be something to do with IE needing elements to have layout (hasLayout == true) for any filters to work. If the element has width/height set, the element has layout which is why it fixes the problem.
Apr 17 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Gale | last post: by
1 post views Thread by DuaneMoraes | last post: by
1 post views Thread by mikeh3275 | last post: by
83 posts views Thread by liketofindoutwhy | last post: by
20 posts views Thread by Aaron Gray | last post: by
26 posts views Thread by RobG | last post: by
53 posts views Thread by souporpower | last post: by
2 posts views Thread by maheswaran | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.