2
<public:attach event="onpropertychange" onevent="doFix()" />
4
<script type="text/javascript">
6
// IE5.5+ PNG Alpha Fix v1.0RC4
7
// (c) 2004-2005 Angus Turnbull http://www.twinhelix.com
9
// This is licensed under the CC-GNU LGPL, version 2.1 or later.
10
// For details, see: http://creativecommons.org/licenses/LGPL/2.1/
12
// Modified/Simplified on 04/23/2007 by Sebastien Gruhier (http://www.xilinus.com)
13
// To work only on background and to handle repeat bg
15
// This must be a path to a blank image. That's all the configuration you need.
16
if (typeof blankImg == 'undefined') var blankImg = 'blank.gif';
18
var f = 'DXImageTransform.Microsoft.AlphaImageLoader';
24
filters[f].enabled = s ? true : false;
25
if (s) with (filters[f]) { src = s; sizingMethod = m }
27
else if (s) style.filter = 'progid:'+f+'(src="'+s+'",sizingMethod="'+m+'")';
33
if (!/MSIE (5\.5|6\.)/.test(navigator.userAgent) ||
34
(event && !/(background|src)/.test(event.propertyName))) return;
36
var bgImg = currentStyle.backgroundImage || style.backgroundImage;
37
var bgRepeat = currentStyle.backgroundRepeat || style.backgroundRepeat;
38
if (bgImg && bgImg != 'none')
40
if (bgImg.match(/^url[("']+(.*\.png)[)"']+$/i))
43
if (currentStyle.width == 'auto' && currentStyle.height == 'auto')
44
style.width = offsetWidth + 'px';
45
style.backgroundImage = 'none';
46
filt(s, bgRepeat == "no-repeat" ? 'crop' : 'scale');
b'\\ No newline at end of file'