1// SCRIPT DE TOOLTIP 2////////////////////////////////////////////////////// 3///// CMS10 Gestor de contenidos ///// 4///// php + flash + ajax ///// 5///// Copyright 2006: ///// 6///// Portfolio Multimedia / Jorge Tarazona ///// 7///// www.cms10.net | www.portfolio.es ///// 8///// ///// 9///// No se permite ninguna modificación a ///// 10///// este archivo salvo permiso por escrito ///// 11///// de los propietarios del Copyright. ///// 12///// --------------------------------------- ///// 13///// El registro del programa no conlleva la ///// 14///// posibilidad de hacer modificaciones al ///// 15///// código. ///// 16////////////////////////////////////////////////////// 17 18 19 var ie=document.all 20 var ns6=document.getElementById && !document.all 21 var enabletip=false 22 var soltar=false 23 if (ie){ 24 var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : "" 25 }else{ var tipobj = document.getElementById('dhtmltooltip'); } 26 27 function ietruebody(){ 28 return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body 29 } 30 31 32 function setCookie(cname, cvalue, exdays) { 33 var d = new Date(); 34 d.setTime(d.getTime() + (exdays*24*60*60*1000)); 35 var expires = "expires="+d.toUTCString(); 36 document.cookie = cname + "=" + cvalue + "; " + expires; 37} 38 39function getCookie(cname) { 40 var name = cname + "="; 41 var ca = document.cookie.split(';'); 42 for(var i=0; i<ca.length; i++) { 43 var c = ca[i]; 44 while (c.charAt(0)==' ') c = c.substring(1); 45 if (c.indexOf(name) == 0) return c.substring(name.length,c.length); 46 } 47 return ""; 48} 49 50 51 function ddrivetip(thetext, thecolor, thewidth){ 52 tipobj = document.getElementById('dhtmltooltip'); 53 if (soltar == false){ 54 if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px" 55 tipobj.innerHTML=thetext 56 enabletip=true 57 return false 58 } 59 } 60 61var IE = document.all?true:false 62if (!IE) document.captureEvents(Event.MOUSEMOVE) 63var tempX = 0 64var tempY = 0 65function getMouseXY(e) { 66 tipobj = document.getElementById('dhtmltooltip'); 67if (soltar == false){ 68if (enabletip){ 69 if (IE) { 70 tempX = event.clientX + document.body.scrollLeft 71 tempY = event.clientY + document.body.scrollTop 72 } else { 73 tempX = e.pageX 74 tempY = e.pageY 75 } 76 if (tempX < 0){tempX = 0} 77 if (tempY < 0){tempY = 0} 78 tipobj.style.top=tempY - 15 +"px" 79 tipobj.style.left=15 + tempX + "px" 80 tipobj.style.visibility="visible" 81 return true 82 }} 83} 84 85 function hideddrivetip(){ 86 tipobj = document.getElementById('dhtmltooltip'); 87 if (soltar == false){ 88 enabletip=false; 89 tipobj.style.visibility="hidden"; 90 tipobj.style.left="-1000px"; 91 tipobj.style.backgroundColor=''; 92 tipobj.style.width=''; 93 } 94 } 95 96 function soltarfun(){ 97 if (soltar == false){ 98 soltar = true; 99 }else{soltar=false;} 100 } 101 102document.onmousemove = getMouseXY;
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.