3 <public:attach event="onpropertychange" onevent="doFix()" />
11 // IE5.5+ PNG Alpha Fix v1.0 by Angus Turnbull http://www.twinhelix.com
13 // Free usage permitted as long as this notice remains intact.
17 // This must be a path to a blank image. That's all the configuration you need here.
19 var blankImg = 'blank.gif';
23 var f = 'DXImageTransform.Microsoft.AlphaImageLoader';
31 filters[f].enabled = s ? true : false;
33 if (s) with (filters[f]) { src = s; sizingMethod = m }
35 } else if (s) style.filter = 'progid:'+f+'(src="'+s+'",sizingMethod="'+m+'")';
43 if ((parseFloat(navigator.userAgent.match(/MSIE (\S+)/)[1]) < 5.5) ||
45 (event && !/(background|src)/.test(event.propertyName))) return;
49 if (tagName == 'IMG') {
51 if ((/\.png$/i).test(src)) {
53 filt(src, 'image'); // was 'scale'
57 } else if (src.indexOf(blankImg) < 0) filt();
59 } else if (style.backgroundImage) {
61 if (style.backgroundImage.match(/^url[("']+(.*\.png)[)"']+$/i)) {
65 style.backgroundImage = '';