The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
IE PNG Fix
The PNG Fix jQuery plug-in was developed to create a quick-and-easy fix for the PNG transparency issue in Internet Explorer 6. It's partially based on Angus Turnbulls TwinHelix fix, but aims to remove un-needed HTTP requests, demanded by an .htc CSS behaviour() based solution.
Please note, repeatable backgrounds are still not fully supported at this time. The IE AlphaImage filter is restricted to scaling backgrounds, rather than repeating (or tiling).
For full API information visit Campbells Digital Soup
Examples
To apply the fix to all images within the page:
jQuery(function($) {
$("img").pngfix();
});A more efficient approach would be to apply it to all image elements that reference PNGs, or directly via IDs.
jQuery(function($) {
$("img[@src$=png], #image-one, #image-two").pngfix();
});Options
There is currently only one option for this plug-in:
- repeatMethod
- Choose between the three options for background scaling (inline with the MSDN guidance for the AlphaLoader filter:
Crop: renders the image at initial size.
Scale: stretches the image to the size of applied element.
For full API information visit Campbells Digital Soup
