1function Bilderanzeige(GrafikURL, Breite, Hoehe) 2{ 3Fensteroptionen="toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no"; 4 5Grafikfenster=window.open("", "", Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe); 6Grafikfenster.focus(); 7Grafikfenster.document.open(); 8with(Grafikfenster) 9{ 10document.write("<html><head>"); 11document.write("<title>Bilderanzeige</title>"); 12document.write("</head>"); 13document.write("<body leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\">"); 14document.write("<img border=\"0\" onclick=\"window.close();\" src=\""+ GrafikURL +"\" title=\"Zum Schließen auf das Foto klicken\">"); 15document.write("</body></html>"); 16document.body.style.cursor = "pointer"; 17} 18} 19 20 21 22function TargetBlank(Adresse) { 23NeuFenster = window.open(Adresse, "Zweitfenster"); 24NeuFenster.focus(); 25} 26 27 28 29// well here it is. the script. use it as you will. or not at all. 30// paul, http://www.idontsmoke.co.uk/ 31 32if(!document.getElementById) { window.location.href = "http://webstandards.org/upgrade/"; } 33 34window.onload = function(e) { 35 if(document.createElement) tooltip.d(); 36} 37 38tooltip = { 39 40 t: document.createElement("div"), 41 c: null, 42 g: false, 43 44 m: function(e) { 45 if(tooltip.g) { 46 x = window.event ? event.clientX + document.body.scrollLeft : e.pageX; 47 y = window.event ? event.clientY + document.body.scrollTop : e.pageY; 48 tooltip.a(x,y); 49 } 50 }, 51 52 d: function() { 53 tooltip.t.setAttribute("id","tooltip"); 54 document.body.appendChild(tooltip.t); 55 a = (document.all) ? document.all : document.getElementsByTagName("*"); 56 for(var i=0; i<a.length; i++) { 57 if(a[i].getAttribute("title")) { 58 a[i].setAttribute("text",a[i].getAttribute("title")); 59 a[i].removeAttribute("title"); 60 if(a[i].getAttribute("alt") && a[i].complete) a[i].removeAttribute("alt"); 61 tooltip.l(a[i],"mouseover",tooltip.s); 62 tooltip.l(a[i],"mouseout",tooltip.h); 63 } else if(a[i].getAttribute("alt") && a[i].complete) { 64 a[i].setAttribute("text",a[i].getAttribute("alt")); 65 a[i].removeAttribute("alt"); 66 tooltip.l(a[i],"mouseover",tooltip.s); 67 tooltip.l(a[i],"mouseout",tooltip.h); 68 } 69 } 70 document.onmousemove = tooltip.m; 71 }, 72 73 s: function(e) { 74 d = (window.event) ? window.event.srcElement : e.currentTarget; 75 tooltip.t.appendChild(document.createTextNode(d.getAttribute("text"))); 76 tooltip.c = setTimeout("tooltip.t.style.visibility = 'visible';",500); 77 tooltip.g = true; 78 }, 79 80 h: function(e) { 81 tooltip.t.style.visibility = "hidden"; 82 // thanks to Alexander Shurkayev for helping me optimise this line :-) 83 if (tooltip.t.firstChild) tooltip.t.removeChild(tooltip.t.firstChild); 84 clearTimeout(tooltip.c); 85 tooltip.g = false; 86 tooltip.a(-99,-99); 87 }, 88 89 l: function(o,e,a) { 90 if(o.addEventListener) o.addEventListener(e,a,true); 91 else if(o.attachEvent) o.attachEvent("on"+e,a); 92 else return null; 93 }, 94 95 a: function(x,y) { 96 tooltip.t.style.left = x + 8 + "px"; 97 tooltip.t.style.top = y + 8 + "px"; 98 } 99 100} 101 102// --> 103 104
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.