1function FD_System_Load(){ 2this.wib = screen.width; 3this.heb = screen.height; 4this.documes = (document.getElementById || document.createElement || document.getElementsByTagName) ? true : false; 5this.objects = window.addEventListener || window.attachEvent ? window : document.addEventListener ? document : null; 6this.types = 'load'; 7} 8FD_System_Load.prototype.addsevent = function(func){ 9if(this.objects.addEventListener){ 10this.objects.addEventListener(this.types,func,false); 11return true; 12} else if (this.objects.attachEvent){ 13this.objects.attachEvent("on" + this.types,func); 14} else { 15return false; 16} 17} 18FD_System_Load.prototype.browser = function(){ 19 this.ver = navigator.appVersion; 20 this.agent = navigator.userAgent.toLowerCase(); 21 this.dom = document.getElementById ? 1:0; 22 this.all = document.all ? 1:0; 23 this.ie5 = (this.ver.indexOf("MSIE 5")>-1 && this.dom) ? 1:0; 24 this.ie6 = (this.ver.indexOf("MSIE 6")>-1 && this.dom) ? 1:0; 25 this.ie4 = (document.all && !this.dom) ? 1:0; 26 this.ie = this.ie4 || this.ie5 || this.ie6; 27 this.opera = this.agent.indexOf("opera")>-1; 28 this.gecko = (this.agent.indexOf("gecko")!=-1) ? 1:0; 29 this.bw = (this.ie || this.opera || this.gecko); 30 return this; 31} 32FD_System_Load.prototype.findobj = function(obj){ 33this.parent = window.document; 34if(this.parent[obj]){ return this.parent[obj]; } 35if(this.parent.all && this.parent.all[obj]){ return this.parent.all[obj]; } 36if(this.parent.layers && this.parent.layers[obj]){ return this.parent.layers[obj]; } 37if(this.parent.getElementById && this.parent.getElementById(obj)){ return this.parent.getElementById(obj); } 38return null; 39} 40var FD = new FD_System_Load(); 41function FD_AJAX_Initialize(works){ 42this.works = works ? true : false; 43this.reqxml = ''; 44this.data = ''; 45} 46function FD_System_Hint(){} 47FD_System_Hint.prototype.show = function(obj,str){ 48var hint = FD.findobj('hint'); 49if(!obj){ return; } 50if(!FD.documes){ return; } 51if(!hint){ return; } 52hint.className = 'hint'; 53hint.style.left = 15+'px'; 54hint.style.top = 19+'px'; 55 56obj.onmouseout = function(advance){ 57hint.style.width = ''; 58hint.style.visibility = 'hidden'; 59if(hint.firstChild) hint.removeChild(hint.firstChild); 60hint.appendChild(document.createTextNode(str)); 61}; 62obj.onmousemove = function(advance){ 63hint.style.width = ''; 64hint.innerHTML = str; 65vc = document.getElementsByTagName((document.compatMode && document.compatMode=="CSS1Compat") ? "HTML":"BODY")[0]; 66x = window.event ? event.clientX + vc.scrollLeft : advance.pageX; 67y = window.event ? event.clientY + vc.scrollTop : advance.pageY; 68vcwidth = vc.clientWidth ? vc.clientWidth + vc.scrollLeft : window.innerWidth + window.pageXOffset; 69vcheight = vc.innerHeight ? window.innerHeight + window.pageYOffset : vc.clientHeight + vc.scrollTop; 70 if(hint.offsetWidth>400){ hint.style.width = '400'+'px'; } 71 if((x + hint.offsetWidth + 15) > vcwidth){ 72 hint.style.left = x - hint.offsetWidth - 4+'px'; 73 } else { 74 hint.style.left = x + 15+'px'; 75 } 76 if((y + hint.offsetHeight + 19) > vcheight){ 77 hint.style.top = y+hint.offsetHeight/2 - hint.offsetHeight+'px'; // äîáàâëåíî +hint.offsetHeight/2 78 } else { 79 hint.style.top = y + 19+'px'; 80 } 81 hint.style.visibility = 'visible'; 82}; 83} 84FD_System_Hint.prototype.initialize = function(){ 85var hint = document.createElement("DIV"); 86hint.setAttribute('id','hint'); 87document.getElementsByTagName('body')[0].appendChild(hint); 88hint.style.visibility = 'hidden'; 89var hintmarker = ['a','b','img','tr','td','area','label','span','div']; 90var textmarker = ['title','title','alt','title','title','alt','title','title','title']; 91var lenmarker = hintmarker.length; 92for(var i=0; i<lenmarker; i++) { 93 atr = document.getElementsByTagName(hintmarker[i]); 94 for(var j=0; j<atr.length; j++) 95 if(viewhint=atr[j].getAttribute(textmarker[i])){ 96 atr[j].removeAttribute(textmarker[i]); 97 HINT.show(atr[j],viewhint); 98 } 99} 100} 101var HINT = new FD_System_Hint(); 102if(FD.objects){ FD.addsevent(HINT.initialize); }
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.