Index: typo3/backend.php =================================================================== --- typo3/backend.php (revision 3422) +++ 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 3422) +++ typo3/js/iecompatibility.js (working copy) @@ -25,6 +25,31 @@ ***************************************************************/ +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; + } + + if(alphaImgSrc) { + el.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="#{alphaImgSrc}",sizingMethod="#{sizingMethod}")'.interpolate( + { + alphaImgSrc: alphaImgSrc, + sizingMethod: sizingMethod + }); + } + + return el; + } +}); + var IECompatibility = Class.create({ /** @@ -34,9 +59,17 @@ 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(); + }); + } + }); } }); -if (Prototype.Browser.IE) { +if(Prototype.Browser.IE) { var TYPO3IECompatibilty = new IECompatibility(); } Index: typo3/sysext/t3skin/ext_tables.php =================================================================== --- typo3/sysext/t3skin/ext_tables.php (revision 3422) +++ typo3/sysext/t3skin/ext_tables.php (working copy) @@ -149,5 +149,9 @@ $TBE_STYLES['skinImg']['MOD:tools_em/uninstall.gif'] = array($temp_eP.'icons/ext/templavoila/mod1/moduleicon.gif','width="22" height="22"'); //print_a($TBE_STYLES,2); + + $GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems'][] = t3lib_extMgm::extPath('t3skin').'registerIe6Stylesheet.php'; + } -?> + +?> \ No newline at end of file Index: typo3/sysext/t3skin/registerIe6Stylesheet.php =================================================================== --- typo3/sysext/t3skin/registerIe6Stylesheet.php (revision 0) +++ typo3/sysext/t3skin/registerIe6Stylesheet.php (revision 0) @@ -0,0 +1,9 @@ +addCssFile('ie6fix', 'sysext/t3skin/stylesheets/ie6.css'); + } + +} + +?> \ No newline at end of file Index: typo3/sysext/t3skin/stylesheets/ie6.css =================================================================== --- typo3/sysext/t3skin/stylesheets/ie6.css (revision 0) +++ typo3/sysext/t3skin/stylesheets/ie6.css (revision 0) @@ -0,0 +1,13 @@ +/* - - - - - - - - - - - - - - - - - - - - - + +Title : TYPO3 backend vertical menu styles +Author : Ingo Renner +URL : http://typo3.org + +Description : fixes the stupid Internet Explorer + + $Id$ + +- - - - - - - - - - - - - - - - - - - - - */ + + +#typo3-menu li div.expanded { + background-image: url('../../../gfx/ie6/arrowdown.gif'); +} + +#typo3-menu li div.collapsed { + background-image: url('../../../gfx/ie6/arrowright.gif'); +} + \ No newline at end of file Index: typo3/sysext/t3skin/stylesheets/modulemenu.css =================================================================== --- typo3/sysext/t3skin/stylesheets/modulemenu.css (revision 3422) +++ typo3/sysext/t3skin/stylesheets/modulemenu.css (working copy) @@ -35,7 +35,7 @@ font-size: 11px; color: #505d6d; border: none; - background-color: transparent; + background-color: #edeeee; padding: 2px 0px 4px 16px; margin: 8px 0px 2px 4px; height: auto; @@ -44,7 +44,7 @@ } #typo3-menu li div.collapsed { - background-image: url(../../../gfx/arrowright.png); + background-image: url('../../../gfx/arrowright.png'); background-repeat: no-repeat; } @@ -49,7 +49,7 @@ } #typo3-menu li div.expanded { - background-image: url(../../../gfx/arrowdown.png); + background-image: url('../../../gfx/arrowdown.png'); background-repeat: no-repeat; }