1 2function setRollOver() { 3 var loadedImg = new Array(); 4 if (!document.getElementsByTagName) return false; 5 var ovrImgList = document.getElementsByTagName('img'); 6 for (var i = 0; i < ovrImgList.length; i++) { 7 if (ovrImgList[i].src.match(/_off\./i)) { 8 loadedImg[i] = new Image(); 9 loadedImg[i].src = ovrImgList[i].src.replace(/_off\./i, '_over.'); 10 ovrImgList[i].onmouseover = function() { 11 this.src = this.src.replace(/_off\./i, '_over.'); 12 } 13 ovrImgList[i].onmouseout = function() { 14 this.src = this.src.replace(/_over\./i, '_off.'); 15 } 16 if (navigator.userAgent.indexOf('MSIE') < 0) ovrImgList[i].onmouseup = function() { 17 this.src = this.src.replace(/_over\./i, '_off.'); 18 } 19 } 20 } 21 return true; 22} 23if (window.addEventListener) window.addEventListener('load', setRollOver, false); 24if (window.attachEvent) window.attachEvent('onload', setRollOver);
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.