PageSourceSearch

https://secure.accountsupport.com/secure/javascripts/ie_alpha_fix.js

js accountsupport.com collected 2026-10-03 22:10:16 UTC 1,303 bytes, 27 lines download raw bytes

1// fix ie transparency issue with PNG images
2function correctPNG() {
3  for(var i=0; i<document.images.length; i++) {
4    var img = document.images[i];
5    var imgName = img.src.toUpperCase();
6    if (imgName.substring(imgName.length-3, imgName.length) == "PNG") {
7      var imgID = (img.id) ? "id='" + img.id + "' " : "";
8      var imgClass = (img.className) ? "class='" + img.className + "' " : "";
9      var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
10      var imgStyle = "display:inline-block;" + img.style.cssText;
11      if (img.align == "left") imgStyle = "float:left;" + imgStyle;
12      if (img.align == "right") imgStyle = "float:right;" + imgStyle;
13      if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
14      var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "padding: 0px; margin: 0px; width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\');\"></span>";
15      img.outerHTML = strNewHTML;
16      i = i-1;
17    }
18  }
19}
20
21var arVersion = navigator.appVersion.split("MSIE");
22var version = parseFloat(arVersion[1]);
23
24if ( ( version >= 5.5 ) && ( version < 7 ) ) {
25  window.attachEvent("onload", correctPNG);
26}
27

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.