471,852 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,852 software developers and data experts.

jQuery PNG Fix - Not Working


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]

Apr 16 '08 #1
3 2981
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
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
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 NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.