PageSourceSearch

https://roneyfuneralhome.com/include/libmajic/pngfix.js

js roneyfuneralhome.com collected 2026-10-06 19:38:54 UTC 2,170 bytes, 79 lines download raw bytes

1/*
2 
3Correctly handle PNG transparency in Win IE 5.5 & 6.
4http://homepage.ntlworld.com/bobosola. Updated 18-Jan-2006.
5
6Use in <HEAD> with DEFER keyword wrapped in conditional comments:
7<!--[if lt IE 7]>
8<script defer type="text/javascript" src="pngfix.js"></script>
9<![endif]-->
10
11*/
12
13var arVersion = navigator.appVersion.split("MSIE")
14var version = parseFloat(arVersion[1])
15var pngFixed = false;
16
17function pngFixer()
18{
19   var hasIncomplete = false;
20
21   for(var i=0; i<document.images.length; i++)
22   {
23      var img = document.images[i]
24      var imgName = img.src.toUpperCase()
25     var imgExt = imgName.substring(imgName.length-3, imgName.length);  
26      if (imgExt != "JPG" && imgExt != "GIF")
27      {
28	 if (!img.complete)
29	{
30	hasIncomplete=true;
31	continue;
32	}
33         var imgID = (img.id) ? "id='" + img.id + "' " : ""
34         var imgClass = (img.className) ? "class='" + img.className + "' " : ""
35         var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
36         var imgStyle = "display:inline-block;" + img.style.cssText 
37         if (img.align == "left") imgStyle = "float:left;" + imgStyle
38         if (img.align == "right") imgStyle = "float:right;" + imgStyle
39         if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
40         var strNewHTML = "<span " + imgID + imgClass + imgTitle
41         + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
42         + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
43         + "(src=\'" + img.src + "\', sizingMethod='scale');\">";
44
45
46	var mapName = img.getAttribute("usemap");
47
48	if (mapName)
49	{
50	//	alert(img.getAttribute("usemap"));
51//		strNewHTML += "<span style='visibility:hidden'>"+img.outerHTML+"</span>";
52		//"<img src='include/clearpixel.gif' height='"+img.height+"' border='0' width='"+img.width+"' id='imgTemp"+i+"'>";
53	}
54
55	strNewHTML += "</span>" 
56        img.outerHTML = strNewHTML;
57
58         i = i-1
59      }
60   }
61
62
63   if (hasIncomplete) 
64   {
65		setTimeout(pngFixer,50);
66		return; 
67   }
68	else
69	{
70		pngFixed = true;
71	}
72
73
74}
75
76if ((version >= 5.5) && (document.body.filters))
77{
78	setTimeout(pngFixer,50);
79}

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.