1/*********************************************** 2* Show Hint script- © Dynamic Drive (www.dynamicdrive.com) 3* This notice MUST stay intact for legal use 4* Visit http://www.dynamicdrive.com/ for this script and 100s more. 5***********************************************/ 6 7var horizontal_offset="9px" //horizontal offset of hint box from anchor link 8 9/////No further editting needed 10 11var vertical_offset="0" //horizontal offset of hint box from anchor link. No need to change. 12var ie=document.all 13var ns6=document.getElementById&&!document.all 14 15function getposOffset(what, offsettype){ 16var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop; 17var parentEl=what.offsetParent; 18while (parentEl!=null){ 19totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop; 20parentEl=parentEl.offsetParent; 21} 22return totaloffset; 23} 24 25function iecompattest(){ 26return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body 27} 28 29function clearbrowseredge(obj, whichedge){ 30var edgeoffset=(whichedge=="rightedge")? parseInt(horizontal_offset)*-1 : parseInt(vertical_offset)*-1 31if (whichedge=="rightedge"){ 32var windowedge=ie && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-30 : window.pageXOffset+window.innerWidth-40 33dropmenuobj.contentmeasure=dropmenuobj.offsetWidth 34if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure) 35edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth+parseInt(horizontal_offset) 36} 37else{ 38var windowedge=ie && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18 39dropmenuobj.contentmeasure=dropmenuobj.offsetHeight 40if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure) 41edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight 42} 43return edgeoffset 44} 45 46function showhint(menucontents, obj, e, tipwidth){ 47if ((ie||ns6) && document.getElementById("hintbox")){ 48dropmenuobj=document.getElementById("hintbox") 49dropmenuobj.innerHTML=menucontents 50dropmenuobj.style.left=dropmenuobj.style.top=-500 51if (tipwidth!=""){ 52dropmenuobj.widthobj=dropmenuobj.style 53dropmenuobj.widthobj.width=tipwidth 54} 55dropmenuobj.x=getposOffset(obj, "left") 56dropmenuobj.y=getposOffset(obj, "top") 57dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+"px" 58dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px" 59dropmenuobj.style.visibility="visible" 60obj.onmouseout=hidetip 61} 62} 63 64function hidetip(e){ 65dropmenuobj.style.visibility="hidden" 66dropmenuobj.style.left="-500px" 67} 68 69function createhintbox(){ 70var divblock=document.createElement("div") 71divblock.setAttribute("id", "hintbox") 72document.body.appendChild(divblock) 73} 74 75if (window.addEventListener) 76window.addEventListener("load", createhintbox, false) 77else if (window.attachEvent) 78window.attachEvent("onload", createhintbox) 79else if (document.getElementById) 80window.onload=createhintbox
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.