Index: typo3/backend.php =================================================================== --- typo3/backend.php (revision 3408) +++ typo3/backend.php (working copy) @@ -97,6 +97,7 @@ 'js/sizemanager.js', 'js/toolbarmanager.js', 'js/modulemenu.js', + 'js/iecompatibility.js', '../t3lib/jsfunc.evalfield.js' ); Index: typo3/js/iecompatibility.js =================================================================== --- typo3/js/iecompatibility.js (revision 3408) +++ typo3/js/iecompatibility.js (working copy) @@ -24,6 +24,40 @@ * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ +Element.addMethods({ + pngHack: function(el) { + + var el = $(el); + var transparentGifPath = 'clear.gif';; + + if(el.src.endsWith('.png')) { + /* if it's an img and a png */ + var alphaImgSrc = el.src; + var sizingMethod = 'scale'; + el.src = transparentGifPath; + } else if(el.getStyle('background-image').include('png')) { + /* if it's an element with a background png */ + var bgColor = ''; + if (el.getStyle('background-color')) { + bgColor = el.getStyle('background-color') + ' '; + } + var elBg = el.getStyle('background-image'); + var alphaImgSrc = elBg.slice(5, elBg.length - 2); + var sizingMethod = 'crop'; + el.setStyle({ 'background': bgColor + transparentGifPath }); + } + + if(alphaImgSrc) { + el.runtimeStyle.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="#{alphaImgSrc}",sizingMethod="#{sizingMethod}")'.interpolate( + { + alphaImgSrc: alphaImgSrc, + sizingMethod: sizingMethod + }); + } + + return el; + } +}); var IECompatibility = Class.create({ @@ -34,9 +68,18 @@ Event.observe(document, 'dom:loaded', function() { $$('input[type="checkbox"]').invoke('addClassName', 'checkbox'); }.bind(this)); + + Event.observe(window, 'load', function() { + if(/MSIE 6/.test(navigator.userAgent)) { + $$('img').each(function(img){ + img.pngHack(); + }); + $('treeFilterBox').pngHack(); + } + }); } }); -if (Prototype.Browser.IE) { +if(Prototype.Browser.IE) { var TYPO3IECompatibilty = new IECompatibility(); } Index: typo3/stylesheet.css =================================================================== --- typo3/stylesheet.css (revision 3410) +++ typo3/stylesheet.css (working copy) @@ -879,7 +879,9 @@ top: 22px; width: 260px; height: 27px; - background: url('gfx/filter_bg.png') no-repeat 2px -2px; + background-repeat: no-repeat; + background-position: 2px -2px; + background-image: url('gfx/filter_bg.png'); } #searchBubble {