1function AdFox_getWindowSize() { 2var winWidth,winHeight; 3 if( typeof( window.innerWidth ) == 'number' ) { 4 //Non-IE 5 winWidth = window.innerWidth; 6 winHeight = window.innerHeight; 7 } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { 8 //IE 6+ in 'standards compliant mode' 9 winWidth = document.documentElement.clientWidth; 10 winHeight = document.documentElement.clientHeight; 11 } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { 12 //IE 4 compatible 13 winWidth = document.body.clientWidth; 14 winHeight = document.body.clientHeight; 15 } 16 return {"width":winWidth, "height":winHeight}; 17}//END function AdFox_getWindowSize 18 19function AdFox_getElementPosition(elemId){ 20 var elem; 21 22 if (document.getElementById) { 23 elem = document.getElementById(elemId); 24 } 25 else if (document.layers) { 26 elem = document.elemId; 27 } 28 else if (document.all) { 29 elem = document.all.elemId; 30 } 31 var w = elem.offsetWidth; 32 var h = elem.offsetHeight; 33 var l = 0; 34 var t = 0; 35 36 while (elem) 37 { 38 l += elem.offsetLeft; 39 t += elem.offsetTop; 40 elem = elem.offsetParent; 41 } 42 43 return {"left":l, "top":t, "width":w, "height":h}; 44} //END function AdFox_getElementPosition 45 46function AdFox_getBodyScrollTop(){ 47 return self.pageYOffset || (document.documentElement && document.documentElement.scrollTop) || (document.body && document.body.scrollTop); 48} //END function AdFox_getBodyScrollTop 49 50function AdFox_getBodyScrollLeft(){ 51 return self.pageXOffset || (document.documentElement && document.documentElement.scrollLeft) || (document.body && document.body.scrollLeft); 52}//END function AdFox_getBodyScrollLeft 53 54function AdFox_Scroll(elemId,elemSrc){ 55 var winPos = AdFox_getWindowSize(); 56 var winWidth = winPos.width; 57 var winHeight = winPos.height; 58 var scrollY = AdFox_getBodyScrollTop(); 59 var scrollX = AdFox_getBodyScrollLeft(); 60 var divId = 'AdFox_banner_'+elemId; 61 var ltwhPos = AdFox_getElementPosition(divId); 62 var lPos = ltwhPos.left; 63 var tPos = ltwhPos.top; 64 65 if(scrollY+winHeight+5 >= tPos && scrollX+winWidth+5 >= lPos){ 66 AdFox_getCodeScript_scroll(1,elemId,elemSrc); 67 }else{ 68 setTimeout('AdFox_Scroll('+elemId+',"'+elemSrc+'");',100); 69 } 70}//End function AdFox_Scroll 71 72function AdFox_getCodeScript_scroll(AF_n, AF_id, AF_src) { 73 var 74 AF_doc, script = null; 75 if (AF_n < 10) { 76 try { 77 if (document.all && !window.opera) { 78 AF_doc = window.frames['AdFox_iframe_' + AF_id].document; 79 } else if (document.getElementById) { 80 AF_doc = document.getElementById('AdFox_iframe_' + AF_id).contentDocument; 81 } 82 } catch (e) {} 83 if (AF_doc && AF_doc.readyState == 'complete') { 84 AF_doc.close(); 85 AF_doc.open(); 86 AF_doc.write('<scr' + 'ipt onerror="document.close();" type="text/javascript" src="' + AF_src + '"><\/scr' + 'ipt>'); 87 } else { 88 setTimeout('AdFox_getCodeScript_scroll(' + (++AF_n) + ',' + AF_id + ',"' + AF_src + '");', 100); 89 } 90 } 91}
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.