1function inputStyle(inputID) 2{ 3 // Change style 4 var inputBox 5 inputBox = document.getElementById(inputID); 6 7 if (inputBox.className == "inputOver") 8 { 9 inputBox.className = "inputOut"; 10 } 11 else 12 { 13 inputBox.className = "inputOver"; 14 } 15} 16 17 18function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. 19{ 20 var arVersion = navigator.appVersion.split("MSIE") 21 var version = parseFloat(arVersion[1]) 22 if ((version >= 5.5) && (document.body.filters)) 23 { 24 for(var i=0; i<document.images.length; i++) 25 { 26 var img = document.images[i] 27 var imgName = img.src.toUpperCase() 28 if (imgName.substring(imgName.length-3, imgName.length) == "PNG" && imgName.indexOf("GOOGLE") < 0) 29 { 30 var imgID = (img.id) ? "id='" + img.id + "' " : "" 31 var imgClass = (img.className) ? "class='" + img.className + "' " : "" 32 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " 33 var imgStyle = "display:inline-block;" + img.style.cssText 34 if (img.align == "left") imgStyle = "float:left;" + imgStyle 35 if (img.align == "right") imgStyle = "float:right;" + imgStyle 36 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle 37 var strNewHTML = "<span " + imgID + imgClass + imgTitle 38 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" 39 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" 40 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 41 img.outerHTML = strNewHTML 42 i = i-1 43 } 44 } 45 } 46} 47if (window.addEventListener) //DOM method for binding an event 48 window.addEventListener("load", correctPNG, false) 49else if (window.attachEvent) //IE exclusive method for binding an event 50 window.attachEvent("onload", correctPNG) 51else if (document.getElementById) //support older modern browsers 52 window.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.