Bug #18420 » IE_PNG2.diff
typo3/backend.php (working copy) | ||
---|---|---|
'js/sizemanager.js',
|
||
'js/toolbarmanager.js',
|
||
'js/modulemenu.js',
|
||
'js/iecompatibility.js',
|
||
'../t3lib/jsfunc.evalfield.js'
|
||
);
|
||
... | ... | |
$TYPO3backend->render();
|
||
?>
|
||
?>
|
typo3/js/iecompatibility.js (working copy) | ||
---|---|---|
* This copyright notice MUST APPEAR in all copies of the script!
|
||
***************************************************************/
|
||
Element.addMethods({
|
||
pngHack: function(el) {
|
||
var el = $(el);
|
||
var transparentGifPath = 'clear.gif';;
|
||
if (!Object.isUndefined(el.src) && 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 */
|
||
//alert(el.getStyle('background-image'));
|
||
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({
|
||
/**
|
||
... | ... | |
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,#typo3-menu li div.expanded,#typo3-menu li div.collapsed').each(function(el){
|
||
el.pngHack();
|
||
});
|
||
}
|
||
});
|
||
}
|
||
});
|
||
if (Prototype.Browser.IE) {
|
||
if(Prototype.Browser.IE) {
|
||
var TYPO3IECompatibilty = new IECompatibility();
|
||
}
|
typo3/stylesheet.css (working copy) | ||
---|---|---|
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 {
|
||
... | ... | |
}
|
||
*/
|
||