1function checkDOMReady() { 2 if ( document.readyState && ( document.readyState == "interactive" || document.readyState == "complete" ) ) 3 correctPNG(); 4 else setTimeout("checkDOMReady()", 50); 5} 6 7function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher. 8 { 9 for(var i=0; i<document.images.length; i++) 10 { 11 var img = document.images[i] 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 imgOnClick = (img.onclick) ? "onclick='" + img.imgOnClick + "' " : "" 18 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " 19 var imgStyle = "display:inline-block;" + img.style.cssText 20 if (img.align == "left") imgStyle = "float:left;" + imgStyle 21 if (img.align == "right") imgStyle = "float:right;" + imgStyle 22 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle 23 var strNewHTML = "<span " + imgID + imgClass + imgTitle 24 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" 25 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" 26 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 27 img.outerHTML = strNewHTML 28 i = i-1 29 } 30 } 31 } 32//setTimeout("checkDOMReady()", 500); 33//window.attachEvent("onload", correctPNG); 34 35correctPNG();
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.