1var offsetxpoint=5 //Customize x offset of tooltip 2var offsetypoint=2 //Customize y offset of tooltip 3var ie=document.all 4var ns6=document.getElementById && !document.all 5var enabletip=false 6if (ie||ns6) 7 var tipobj=document.all? document.all["dhtmltooltipNMap"] : document.getElementById? document.getElementById("dhtmltooltipNMap") : "" 8 //var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : "" 9 10function ietruebody(){ 11 return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body 12} 13 14function ddrivetipNMap(thetext, thecolor, thewidth){ 15 if (ns6||ie){ 16 if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px" 17 if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor 18 tipobj.innerHTML=thetext 19 enabletip=true 20 return false 21 } 22} 23 24function positiontip(e){ 25 if (enabletip){ 26 var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft; 27 var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop; 28 //Find out how close the mouse is to the corner of the window 29 var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20 30 var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20 31 32 var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000 33 34 //if the horizontal distance isn't enough to accomodate the width of the context menu 35 if (rightedge<tipobj.offsetWidth) 36 //move the horizontal position of the menu to the left by it's width 37 tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px" 38 else if (curX<leftedge) 39 tipobj.style.left="5px" 40 else 41 //position the horizontal position of the menu where the mouse is positioned 42 tipobj.style.left=curX+offsetxpoint+"px" 43 44 //same concept with the vertical position 45 if (bottomedge<tipobj.offsetHeight) 46 tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px" 47 else 48 tipobj.style.top=curY+offsetypoint+"px" 49 tipobj.style.visibility="visible" 50 } 51} 52 53function hideddrivetip(){ 54 if (ns6||ie){ 55 enabletip=false 56 tipobj.style.visibility="hidden" 57 tipobj.style.left="-1000px" 58 tipobj.style.backgroundColor='' 59 tipobj.style.width='' 60 } 61} 62 63document.onmousemove=positiontip
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.