I've got the ultimate solution for this damn IE-PNG-BlackBorderProblem when using fading or other jQuery effects. It is working in every IE > 6 even in IE8!:
1. Download jQuery's pngFix at:
[To see links please register here]
2. Modify this script by searching:
`if (jQuery.browser.msie && (ie55 || ie6)) {`
and replace it with:
`if (jQuery.browser.msie) {`
3. create a blank.gif (1x1 transparent gif)
4. put a:
`.pngFix( {blankgif: '< relative location to the blank.gif >'} );`
at the end of the line where you perform jQuery effects eg.
`$('#LOGO').animate( {'top': '40%', 'opacity': '1.0'}, 2500 ).pngFix( {blankgif: './library/img/blank.gif'} );`
5. make sure that all pictures have been loaded before you use jQuery effects within your document ready function by using the .load event on the window DOM-Element:
`$(document).ready( function() {`
`$(window).load( function() {`
`$('#LOGO').animate( {'top': '40%', 'opacity': '1.0'}, 2500).pngFix( {blankgif: './library/img/blank.gif'} );`
`});`
`});`
6. Load page in IE8 and feel happy ;-)
7. You can see it in action on
[To see links please register here]
No ugly dark borders anymore around some animated PNGs in IE.