diff options
Diffstat (limited to 'itjs/it.js')
-rw-r--r-- | itjs/it.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -210,13 +210,13 @@ function it_url_encode(str) /** * Patch PNG transparency for IE 5.5-6 on the given image */ -function it_pngfix(img, w, h) +function it_pngfix(img, w, h, mode) { var old_IE = navigator.platform == "Win32" && String(navigator.userAgent).match(/MSIE ((5\.5)|6)/); if (img.src && img.src.match(/\.png($|\?)/) && old_IE) { img.style.width = (w || img.width) + 'px'; img.style.height = (h || img.height) + 'px'; - img.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+img.src+"',sizingMethod='crop')"; + img.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+img.src+"',sizingMethod='"+(mode ? mode : 'crop')+"')"; img.src = '/images/0.gif'; } else if (img && old_IE) |