1//[I[o[ 2/*------------------------------------------------------------ 3 Standards Compliant Rollover Script 4 Author : Daniel Nolan 5 http://www.bleedingego.co.uk/webdev.php 6 *------------------------------------------------------------ 7 * }EXI[o[ÌæØèÖ¦ 8 * [I[o[ðÝè·éæÉNX¼uimgovervðwè 9 * [I[o[É\¦·é½ßÌæt@C¼ãëÉu_ovð¯é 10/*------------------------------------------------------------*/ 11 12function initRollovers() { 13 if (!document.getElementById) return 14 15 var aPreLoad = new Array(); 16 var sTempSrc; 17 var aImages = document.getElementsByTagName('img'); 18 19 for (var i = 0; i < aImages.length; i++) { 20 if (aImages[i].className == 'imgover') { 21 var src = aImages[i].getAttribute('src'); 22 var ftype = src.substring(src.lastIndexOf('.'), src.length); 23 var hsrc = src.replace(ftype, '_o'+ftype); 24 25 aImages[i].setAttribute('hsrc', hsrc); 26 27 aPreLoad[i] = new Image(); 28 aPreLoad[i].src = hsrc; 29 30 aImages[i].onmouseover = function() { 31 sTempSrc = this.getAttribute('src'); 32 this.setAttribute('src', this.getAttribute('hsrc')); 33 } 34 35 aImages[i].onmouseout = function() { 36 if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_o'+ftype, ftype); 37 this.setAttribute('src', sTempSrc); 38 } 39 } 40 } 41} 42 43window.onload = initRollovers; 44 45 46//Rs[CgÌN©®JEg 47//------------------------------------------------------------ 48function year() { 49var data = new Date(); 50var now_year = data.getFullYear(); 51document.write(now_year); 52} 53 54 55//óüpWindow 56//------------------------------------------------------------ 57function openWin(){ 58 window.open(window.location.href,"printpage"); 59} 60 61 62//TCgàõ 63//------------------------------------------------------------ 64(function() { 65var sb = document.getElementById('srchBox'); 66if (sb && sb.className == 'watermark') { 67 var si = document.getElementById('srchInput'); 68 var f = function() { si.className = 'nomark'; }; 69 var b = function() { 70 if (si.value == '') { 71 si.className = ''; 72 } 73 }; 74 si.onfocus = f; 75 si.onblur = b; 76 if (!/[&?]p=[^&]/.test(location.search)) { 77 b(); 78 } else { 79 f(); 80 } 81} 82})();
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.