PageSourceSearch

https://grandsoul.com/js/ie6png.js

js grandsoul.com collected 2026-09-25 07:53:59 UTC 1,530 bytes, 32 lines download raw bytes

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

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.