1<!-- 2/* Mouse Over1 */ 3function MouseOver() { 4 //setting 5 var KeyName = 'mo'; 6 var AddOn = '_on'; 7 //move 8 var ChangeSrc; 9 var overImages = document.getElementsByTagName('img'); 10 var imgPreLoad = new Array(); 11 12 for (var i = 0; i < overImages.length; i++) { 13 if (overImages[i].className == KeyName) { 14 var temp = overImages[i]; 15 var src = temp.src; 16 var FileType = src.substring(src.lastIndexOf('.')); 17 var name = src.substring(0,src.length - FileType.length); 18 var overSrc = name + AddOn + FileType; 19 overImages[i].setAttribute('overSrc', overSrc); 20 //preload 21 imgPreLoad[i] = new Image(); 22 imgPreLoad[i].src = overSrc; 23 //action 24 overImages[i].onmouseover = function() { 25 ChangeSrc = this.getAttribute('src'); 26 this.setAttribute('src', this.getAttribute('overSrc')); 27 } 28 overImages[i].onmouseout = function() { 29 if (!ChangeSrc) ChangeSrc = this.getAttribute('src').replace('_on'+FileType, FileType); 30 this.setAttribute('src', ChangeSrc); 31 } 32 } 33 } 34} 35 36window.onload = MouseOver; 37//--> 38 39
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.