|
jgivoni
Date:: Jan 14, 2009
Time:: 01:27
|
Hi Alopia,
Because of experience, I am naturally quite sceptical of these auto png fix scripts, though I admit that they can be very helpful for beginners.
I am also curious, so I set out to test the jQuery approach on one of my current websites!
I took away all my manual pngfixes and applied the jQuery as documented. After some fiddling I got it to 'do something'. I won't say thay I got it to work, because of the following situations:
1) My two png logos have jumped to different locations
2) Foreground images can no longer be saved from the context menu (typical problem)
3) The menu items were unclickable (typical problem)
4) My image replaced header was not transparent
5) Two inline png images had disappeared
Aside from these problems with png images, in spite of claims of non-obtrusiveness:
1) Other javascript, controlling dynamic comments and login scripts no longer worked
On the plus side:
1) Two of my png background images were correctly transparent and in the right position.
All in all I was disappointed to see that the result was even worse than I had feared. Apparently the jQuery script (in this version) doesn't address the typical issues with IE's filter AlphaImageLoader:
1) When the filter is applied to a foreground image, the foreground image itself must be removed from sight, but doing this the wrong way means that the image will no longer be saveable from the context menu. A custom solution can avoid that.
2) When the filter is applied to an element with relative or absolute position, all hyperlinks inside the element become unresponsive. With a custom solution you can insert an IE6 only wrapper with static position between the element in question and the hyperlinks, and apply the filter to the wrapper.
3) A background image with no-repeat specified is still stretched to fit the element instead of using sizingMethod='crop'.
Contrary to what you might think, I am the first one to appreciate a script that can do all this automatically, so I don't have to worry about IE6 - heck, I even wrote some myself. But in the end - in complex situations - it it just simpler and much more robust to get to the root of the problem, find out how it works and write custom IE6 specific filter css properties. It seems to me that so far auto-scripts can only handle around 25% of the different setups in which a png image can appear.
If you can get away with using this or another script, go ahead, otherwise, I am always willing to help :-)
Thanks,
Jakob
|