1/* This notice must be untouched at all times. 2 3wz_tooltip.js v. 3.45 4 5The latest version is available at 6http://www.walterzorn.com 7or http://www.devira.com 8or http://www.walterzorn.de 9 10Copyright (c) 2002-2005 Walter Zorn. All rights reserved. 11Created 1. 12. 2002 by Walter Zorn (Web: http://www.walterzorn.com ) 12Last modified: 17. 2. 2007 13 14Cross-browser tooltips working even in Opera 5 and 6, 15as well as in NN 4, Gecko-Browsers, IE4+, Opera 7+ and Konqueror. 16No onmouseouts required. 17Appearance of tooltips can be individually configured 18via commands within the onmouseovers. 19 20LICENSE: LGPL 21 22This library is free software; you can redistribute it and/or 23modify it under the terms of the GNU Lesser General Public 24License (LGPL) as published by the Free Software Foundation; either 25version 2.1 of the License, or (at your option) any later version. 26 27This library is distributed in the hope that it will be useful, 28but WITHOUT ANY WARRANTY; without even the implied warranty of 29MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 30 31For more details on the GNU Lesser General Public License, 32see http://www.gnu.org/copyleft/lesser.html 33*/ 34 35 36 37//////////////// GLOBAL TOOPTIP CONFIGURATION ///////////////////// 38var ttAbove = false; // tooltip above mousepointer? Alternative: true 39var ttBgColor = "#FFFFFF"; 40var ttBgImg = ""; // path to background image; 41var ttBorderColor = "#CCCCCC"; 42var ttBorderWidth = 1; 43var ttClickClose = false; 44var ttDelay = 200; // time span until tooltip shows up [milliseconds] 45var ttFontColor = "#000066"; 46var ttFontFace = "arial,helvetica,sans-serif"; 47var ttFontSize = "11px"; 48var ttFontWeight = "normal"; // alternative: "bold"; 49var ttLeft = false; // tooltip on the left of the mouse? Alternative: true 50var ttOffsetX = 12; // horizontal offset of left-top corner from mousepointer 51var ttOffsetY = 10; // vertical offset " 52var ttOpacity = 100; // opacity of tooltip in percent (must be integer between 0 and 100) 53var ttPadding = 1; // spacing between border and content 54var ttShadowColor = "#666666"; 55var ttShadowWidth = 0; 56var ttStatic = false; // tooltip NOT move with the mouse? Alternative: true 57var ttSticky = false; // do NOT hide tooltip on mouseout? Alternative: true 58var ttTemp = 0; // time span after which the tooltip disappears; 0 (zero) means "infinite timespan" 59var ttTextAlign = "left"; 60var ttTitleColor = "#ffffff"; // color of caption text 61var ttWidth = 250; 62//////////////////// END OF TOOLTIP CONFIG //////////////////////// 63 64 65 66////////////// TAGS WITH TOOLTIP FUNCTIONALITY //////////////////// 67// List may be extended or shortened: 68var tt_tags = new Array("a","area","b","big","caption","center","code","dd","div","dl","dt","em","h1","h2","h3","h4","h5","h6","i","img","input","li","map","ol","p","pre","s", "select", "small","span","strike","strong","sub","sup","table","td","textarea","th","tr","tt","u","var","ul","layer"); 69///////////////////////////////////////////////////////////////////// 70 71 72 73///////// DON'T CHANGE ANYTHING BELOW THIS LINE ///////////////////// 74var tt_obj = null, // current tooltip 75tt_ifrm = null, // iframe to cover windowed controls in IE 76tt_objW = 0, tt_objH = 0, // width and height of tt_obj 77tt_objX = 0, tt_objY = 0, 78tt_offX = 0, tt_offY = 0, 79xlim = 0, ylim = 0, // right and bottom borders of visible client area 80tt_sup = false, // true if T_ABOVE cmd 81tt_sticky = false, // tt_obj sticky? 82tt_wait = false, 83tt_act = false, // tooltip visibility flag 84tt_sub = false, // true while tooltip below mousepointer 85tt_u = "undefined", 86tt_mf = null, // stores previous mousemove evthandler 87// Opera: disable href when hovering <a> 88tt_tag = null; // stores hovered dom node, href and previous statusbar txt 89 90 91var tt_db = (document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body? document.body : null, 92tt_n = navigator.userAgent.toLowerCase(), 93tt_nv = navigator.appVersion; 94// Browser flags 95var tt_op = !!(window.opera && document.getElementById), 96tt_op6 = tt_op && !document.defaultView, 97tt_op7 = tt_op && !tt_op6, 98tt_ie = tt_n.indexOf("msie") != -1 && document.all && tt_db && !tt_op, 99tt_ie7 = tt_ie && typeof document.body.style.maxHeight != tt_u, 100tt_ie6 = tt_ie && !tt_ie7 && parseFloat(tt_nv.substring(tt_nv.indexOf("MSIE")+5)) >= 5.5, 101tt_n4 = (document.layers && typeof document.classes != tt_u), 102tt_n6 = (!tt_op && document.defaultView && typeof document.defaultView.getComputedStyle != tt_u), 103tt_w3c = !tt_ie && !tt_n6 && !tt_op && document.getElementById, 104tt_ce = document.captureEvents && !tt_n6; 105 106function tt_Int(t_x) 107{ 108 var t_y;
109 return isNaN(t_y = parseInt(t_x))? 0 : t_y; 110} 111function wzReplace(t_x, t_y) 112{ 113 var t_ret = "", 114 t_str = this, 115 t_xI; 116 while((t_xI = t_str.indexOf(t_x)) != -1) 117 { 118 t_ret += t_str.substring(0, t_xI) + t_y; 119 t_str = t_str.substring(t_xI + t_x.length); 120 } 121 return t_ret+t_str; 122} 123String.prototype.wzReplace = wzReplace; 124function tt_N4Tags(tagtyp, t_d, t_y) 125{ 126 t_d = t_d || document; 127 t_y = t_y || new Array(); 128 var t_x = (tagtyp=="a")? t_d.links : t_d.layers; 129 for(var z = t_x.length; z--;) t_y[t_y.length] = t_x[z]; 130 for(z = t_d.layers.length; z--;) t_y = tt_N4Tags(tagtyp, t_d.layers[z].document, t_y); 131 return t_y; 132} 133function tt_Htm(tt, t_id, txt) 134{ 135 var t_bgc = (typeof tt.T_BGCOLOR != tt_u)? tt.T_BGCOLOR : ttBgColor, 136 t_bgimg = (typeof tt.T_BGIMG != tt_u)? tt.T_BGIMG : ttBgImg, 137 t_bc = (typeof tt.T_BORDERCOLOR != tt_u)? tt.T_BORDERCOLOR : ttBorderColor, 138 t_bw = (typeof tt.T_BORDERWIDTH != tt_u)? tt.T_BORDERWIDTH : ttBorderWidth, 139 t_ff = (typeof tt.T_FONTFACE != tt_u)? tt.T_FONTFACE : ttFontFace, 140 t_fc = (typeof tt.T_FONTCOLOR != tt_u)? tt.T_FONTCOLOR : ttFontColor, 141 t_fsz = (typeof tt.T_FONTSIZE != tt_u)? tt.T_FONTSIZE : ttFontSize, 142 t_fwght = (typeof tt.T_FONTWEIGHT != tt_u)? tt.T_FONTWEIGHT : ttFontWeight, 143 t_opa = (typeof tt.T_OPACITY != tt_u)? tt.T_OPACITY : ttOpacity, 144 t_padd = (typeof tt.T_PADDING != tt_u)? tt.T_PADDING : ttPadding, 145 t_shc = (typeof tt.T_SHADOWCOLOR != tt_u)? tt.T_SHADOWCOLOR : (ttShadowColor || 0), 146 t_shw = (typeof tt.T_SHADOWWIDTH != tt_u)? tt.T_SHADOWWIDTH : (ttShadowWidth || 0), 147 t_algn = (typeof tt.T_TEXTALIGN != tt_u)? tt.T_TEXTALIGN : ttTextAlign, 148 t_tit = (typeof tt.T_TITLE != tt_u)? tt.T_TITLE : "", 149 t_titc = (typeof tt.T_TITLECOLOR != tt_u)? tt.T_TITLECOLOR : ttTitleColor, 150 t_w = (typeof tt.T_WIDTH != tt_u)? tt.T_WIDTH : ttWidth; 151 if(t_shc || t_shw) 152 { 153 t_shc = t_shc || "#c0c0c0"; 154 t_shw = t_shw || 5; 155 } 156 if(tt_n4 && (t_fsz == "10px" || t_fsz == "11px")) t_fsz = "12px"; 157 158 var t_optx = (tt_n4? '' : tt_n6? ('-moz-opacity:'+(t_opa/100.0)) : tt_ie? ('filter:Alpha(opacity='+t_opa+')') : ('opacity:'+(t_opa/100.0))) + ';'; 159 var t_y = '<div id="'+t_id+'" style="position:absolute;z-index:1010;'; 160 t_y += 'left:0px;top:0px;width:'+(t_w+t_shw)+'px;visibility:'+(tt_n4? 'hide' : 'hidden')+';'+t_optx+'">' + 161 '<table border="0" cellpadding="0" cellspacing="0"'+(t_bc? (' bgcolor="'+t_bc+'" style="background:'+t_bc+';"') : '')+' width="'+t_w+'">'; 162 if(t_tit) 163 { 164 t_y += '<tr><td style="padding-left:3px;padding-right:3px;" align="'+t_algn+'"><font color="'+t_titc+'" face="'+t_ff+'" ' + 165 'style="color:'+t_titc+';font-family:'+t_ff+';font-size:'+t_fsz+';"><b>' + 166 (tt_n4? ' ' : '')+t_tit+'</b></font></td></tr>'; 167 } 168 t_y += '<tr><td><table border="0" cellpadding="'+t_padd+'" cellspacing="'+t_bw+'" width="100%">' + 169 '<tr><td'+(t_bgc? (' bgcolor="'+t_bgc+'"') : '')+(t_bgimg? ' background="'+t_bgimg+'"' : '')+' style="text-align:'+t_algn+';'; 170 if(tt_n6) t_y += 'padding:'+t_padd+'px;'; 171 t_y += '" align="'+t_algn+'"><font color="'+t_fc+'" face="'+t_ff+'"' + 172 ' style="color:'+t_fc+';font-family:'+t_ff+';font-size:'+t_fsz+';font-weight:'+t_fwght+';">'; 173 if(t_fwght == 'bold') t_y += '<b>'; 174 t_y += txt; 175 if(t_fwght == 'bold') t_y += '</b>'; 176 t_y += '</font></td></tr></table></td></tr></table>'; 177 if(t_shw) 178 { 179 var t_spct = Math.round(t_shw*1.3); 180 if(tt_n4) 181 { 182 t_y += '<layer bgcolor="'+t_shc+'" left="'+t_w+'" top="'+t_spct+'" width="'+t_shw+'" height="0"></layer>' + 183 '<layer bgcolor="'+t_shc+'" left="'+t_spct+'" align="bottom" width="'+(t_w-t_spct)+'" height="'+t_shw+'"></layer>'; 184 } 185 else 186 { 187 t_optx = tt_n6? '-moz-opacity:0.85;' : tt_ie? 'filter:Alpha(opacity=85);' : 'opacity:0.85;'; 188 t_y += '<div id="'+t_id+'R" style="position:absolute;background:'+t_shc+';left:'+t_w+'px;top:'+t_spct+'px;width:'+t_shw+'px;height:1px;overflow:hidden;'+t_optx+'"></div>' + 189 '<div style="position:relative;background:'+t_shc+';left:'+t_spct+'px;top:0px;width:'+(t_w-t_spct)+'px;height:'+t_shw+'px;overflow:hidden;'+t_optx+'"></div>'; 190 } 191 } 192 return(t_y+'</div>'); 193} 194function tt_EvX(t_e) 195{ 196 var t_y = tt_Int(t_e.pageX || t_e.clientX || 0) + 197 tt_Int(tt_ie? tt_db.scrollLeft : 0) + 198 tt_offX; 199 if(t_y > xlim) t_y = xlim; 200 var t_scr = tt_Int(window.pageXOffset || (tt_db? tt_db.scrollLeft : 0) || 0); 201 if(t_y < t_scr) t_y = t_scr; 202 return t_y; 203} 204function tt_EvY(t_e) 205{ 206 var t_y2; 207 208 var t_y = tt_Int(t_e.pageY || t_e.clientY || 0) + 209 tt_Int(tt_ie? tt_db.scrollTop : 0); 210 if(tt_sup && (t_y2 = t_y - (tt_objH + tt_offY - 15)) >= tt_Int(window.pageYOffset || (tt_db? tt_db.scrollTop : 0) || 0)) 211 t_y -= (tt_objH + tt_offY - 15); 212 else if(t_y > ylim || !tt_sub && t_y > ylim-24) 213 { 214 t_y -= (tt_objH + 5); 215 tt_sub = false; 216 } 217 else 218 { 219 t_y += tt_offY; 220 tt_sub = true; 221 } 222 return t_y; 223} 224function tt_ReleasMov() 225{ 226 if(document.onmousemove == tt_Move) 227 { 228 if(!tt_mf && tt_ce) document.releaseEvents(Event.MOUSEMOVE); 229 document.onmousemove = tt_mf; 230 } 231} 232function tt_ShowIfrm(t_x) 233{ 234 if(!tt_obj || !tt_ifrm) return; 235 if(t_x) 236 { 237 tt_ifrm.style.width = tt_objW+'px'; 238 tt_ifrm.style.height = tt_objH+'px'; 239 tt_ifrm.style.display = "block"; 240 } 241 else tt_ifrm.style.display = "none"; 242} 243function tt_GetDiv(t_id) 244{ 245 return( 246 tt_n4? (document.layers[t_id] || null) 247 : tt_ie? (document.all[t_id] || null) 248 : (document.getElementById(t_id) || null) 249 ); 250} 251function tt_GetDivW() 252{ 253 return tt_Int( 254 tt_n4? tt_obj.clip.width 255 : (tt_obj.offsetWidth || tt_obj.style.pixelWidth) 256 ); 257} 258function tt_GetDivH() 259{ 260 return tt_Int( 261 tt_n4? tt_obj.clip.height 262 : (tt_obj.offsetHeight || tt_obj.style.pixelHeight) 263 ); 264} 265 266// Compat with DragDrop Lib: Ensure that z-index of tooltip is lifted beyond toplevel dragdrop element 267function tt_SetDivZ() 268{ 269 var t_i = tt_obj.style || tt_obj; 270 if(t_i) 271 { 272 if(window.dd && dd.z) 273 t_i.zIndex = Math.max(dd.z+1, t_i.zIndex); 274 if(tt_ifrm) tt_ifrm.style.zIndex = t_i.zIndex-1; 275 } 276} 277function tt_SetDivPos(t_x, t_y) 278{ 279 var t_i = tt_obj.style || tt_obj; 280 var t_px = (tt_op6 || tt_n4)? '' : 'px'; 281 t_i.left = (tt_objX = t_x) + t_px; 282 t_i.top = (tt_objY = t_y) + t_px; 283 // window... to circumvent the FireFox Alzheimer Bug 284 if(window.tt_ifrm) 285 { 286 tt_ifrm.style.left = t_i.left; 287 tt_ifrm.style.top = t_i.top; 288 } 289} 290function tt_ShowDiv(t_x) 291{ 292 tt_ShowIfrm(t_x); 293 if(tt_n4) tt_obj.visibility = t_x? 'show' : 'hide'; 294 else tt_obj.style.visibility = t_x? 'visible' : 'hidden'; 295 tt_act = t_x; 296} 297function tt_DeAlt(t_tag) 298{ 299 if(t_tag) 300 { 301 if(t_tag.alt) t_tag.alt = ""; 302 if(t_tag.title) t_tag.title = "";
303 var t_c = t_tag.children || t_tag.childNodes || null; 304 if(t_c) 305 { 306 for(var t_i = t_c.length; t_i; ) 307 tt_DeAlt(t_c[--t_i]); 308 } 309 } 310} 311function tt_OpDeHref(t_e) 312{ 313 var t_tag; 314 if(t_e) 315 { 316 t_tag = t_e.target; 317 while(t_tag) 318 { 319 if(t_tag.hasAttribute("href")) 320 { 321 tt_tag = t_tag 322 tt_tag.t_href = tt_tag.getAttribute("href"); 323 tt_tag.removeAttribute("href"); 324 tt_tag.style.cursor = "hand"; 325 tt_tag.onmousedown = tt_OpReHref; 326 tt_tag.stats = window.status; 327 window.status = tt_tag.t_href; 328 break; 329 } 330 t_tag = t_tag.parentElement; 331 } 332 } 333} 334function tt_OpReHref() 335{ 336 if(tt_tag) 337 { 338 tt_tag.setAttribute("href", tt_tag.t_href); 339 window.status = tt_tag.stats; 340 tt_tag = null; 341 } 342} 343function tt_Show(t_e, t_id, t_sup, t_clk, t_delay, t_fix, t_left, t_offx, t_offy, t_static, t_sticky, t_temp) 344{ 345 if(tt_obj) tt_Hide(); 346 tt_mf = document.onmousemove || null; 347 if(window.dd && (window.DRAG && tt_mf == DRAG || window.RESIZE && tt_mf == RESIZE)) return; 348 var t_sh, t_h; 349 350 tt_obj = tt_GetDiv(t_id); 351 if(tt_obj) 352 { 353 t_e = t_e || window.event; 354 tt_sub = !(tt_sup = t_sup); 355 tt_sticky = t_sticky; 356 tt_objW = tt_GetDivW(); 357 tt_objH = tt_GetDivH(); 358 tt_offX = t_left? -(tt_objW+t_offx) : t_offx; 359 tt_offY = t_offy; 360 if(tt_op7) tt_OpDeHref(t_e); 361 if(tt_n4) 362 { 363 if(tt_obj.document.layers.length) 364 { 365 t_sh = tt_obj.document.layers[0]; 366 t_sh.clip.height = tt_objH - Math.round(t_sh.clip.width*1.3); 367 } 368 } 369 else 370 { 371 t_sh = tt_GetDiv(t_id+'R'); 372 if(t_sh) 373 { 374 t_h = tt_objH - tt_Int(t_sh.style.pixelTop || t_sh.style.top || 0); 375 if(typeof t_sh.style.pixelHeight != tt_u) t_sh.style.pixelHeight = t_h; 376 else t_sh.style.height = t_h+'px'; 377 } 378 } 379 380 xlim = tt_Int((tt_db && tt_db.clientWidth)? tt_db.clientWidth : window.innerWidth) + 381 tt_Int(window.pageXOffset || (tt_db? tt_db.scrollLeft : 0) || 0) - 382 tt_objW - 383 (tt_n4? 21 : 0); 384 ylim = tt_Int(window.innerHeight || tt_db.clientHeight) + 385 tt_Int(window.pageYOffset || (tt_db? tt_db.scrollTop : 0) || 0) - 386 tt_objH - tt_offY; 387 388 tt_SetDivZ(); 389 if(t_fix) tt_SetDivPos(tt_Int((t_fix = t_fix.split(','))[0]), tt_Int(t_fix[1])); 390 else tt_SetDivPos(tt_EvX(t_e), tt_EvY(t_e)); 391 392 var t_txt = 'tt_ShowDiv(\'true\');'; 393 if(t_sticky) t_txt += '{'+ 394 'tt_ReleasMov();'+ 395 (t_clk? ('window.tt_upFunc = document.onmouseup || null;'+ 396 'if(tt_ce) document.captureEvents(Event.MOUSEUP);'+ 397 'document.onmouseup = new Function("window.setTimeout(\'tt_Hide();\', 10);");') : '')+ 398 '}'; 399 else if(t_static) t_txt += 'tt_ReleasMov();'; 400 if(t_temp > 0) t_txt += 'window.tt_rtm = window.setTimeout(\'tt_sticky = false; tt_Hide();\','+t_temp+');'; 401 window.tt_rdl = window.setTimeout(t_txt, t_delay); 402 403 if(!t_fix) 404 { 405 if(tt_ce) document.captureEvents(Event.MOUSEMOVE); 406 document.onmousemove = tt_Move; 407 } 408 } 409} 410var tt_area = false; 411function tt_Move(t_ev) 412{ 413 if(!tt_obj) return; 414 if(tt_n6 || tt_w3c) 415 { 416 if(tt_wait) return; 417 tt_wait = true; 418 setTimeout('tt_wait = false;', 5); 419 } 420 var t_e = t_ev || window.event; 421 tt_SetDivPos(tt_EvX(t_e), tt_EvY(t_e)); 422 if(window.tt_op6) 423 { 424 if(tt_area && t_e.target.tagName != 'AREA') tt_Hide(); 425 else if(t_e.target.tagName == 'AREA') tt_area = true; 426 } 427} 428function tt_Hide() 429{ 430 if(window.tt_obj) 431 { 432 if(window.tt_rdl) window.clearTimeout(tt_rdl); 433 if(!tt_sticky || !tt_act) 434 { 435 if(window.tt_rtm) window.clearTimeout(tt_rtm); 436 tt_ShowDiv(false); 437 tt_SetDivPos(-tt_objW, -tt_objH); 438 tt_obj = null; 439 if(typeof window.tt_upFunc != tt_u) document.onmouseup = window.tt_upFunc; 440 } 441 tt_sticky = false; 442 if(tt_op6 && tt_area) tt_area = false; 443 tt_ReleasMov(); 444 if(tt_op7) tt_OpReHref(); 445 } 446} 447function tt_Init() 448{ 449 if(!(tt_op || tt_n4 || tt_n6 || tt_ie || tt_w3c)) return; 450 451 var htm = tt_n4? '<div style="position:absolute;"></div>' : '', 452 tags, 453 t_tj, 454 over, 455 t_b, 456 esc = 'return escape('; 457 for(var i = tt_tags.length; i;) 458 {--i; 459 tags = tt_ie? (document.all.tags(tt_tags[i]) || 1) 460 : document.getElementsByTagName? (document.getElementsByTagName(tt_tags[i]) || 1) 461 : (!tt_n4 && tt_tags[i]=="a")? document.links 462 : 1; 463 if(tt_n4 && (tt_tags[i] == "a" || tt_tags[i] == "layer")) tags = tt_N4Tags(tt_tags[i]); 464 for(var j = tags.length; j;) 465 {--j; 466 if(typeof (t_tj = tags[j]).onmouseover == "function" && t_tj.onmouseover.toString().indexOf(esc) != -1 && !tt_n6 || tt_n6 && (over = t_tj.getAttribute("onmouseover")) && over.indexOf(esc) != -1) 467 { 468 if(over) t_tj.onmouseover = new Function(over); 469 var txt = unescape(t_tj.onmouseover()); 470 htm += tt_Htm( 471 t_tj, 472 "tOoLtIp"+i+""+j, 473 txt.wzReplace("& ","&") 474 ); 475 // window. to circumvent the FF Alzheimer Bug 476 t_tj.onmouseover = new Function('e', 477 'if(window.tt_Show && tt_Show) tt_Show(e,'+ 478 '"tOoLtIp' +i+''+j+ '",'+ 479 ((typeof t_tj.T_ABOVE != tt_u)? t_tj.T_ABOVE : ttAbove)+','+ 480 ((typeof t_tj.T_CLICKCLOSE != tt_u)? t_tj.T_CLICKCLOSE : ttClickClose)+','+ 481 ((typeof t_tj.T_DELAY != tt_u)? t_tj.T_DELAY : ttDelay)+','+ 482 ((typeof t_tj.T_FIX != tt_u)? '"'+t_tj.T_FIX+'"' : '""')+','+ 483 ((typeof t_tj.T_LEFT != tt_u)? t_tj.T_LEFT : ttLeft)+','+ 484 ((typeof t_tj.T_OFFSETX != tt_u)? t_tj.T_OFFSETX : ttOffsetX)+','+ 485 ((typeof t_tj.T_OFFSETY != tt_u)? t_tj.T_OFFSETY : ttOffsetY)+','+ 486 ((typeof t_tj.T_STATIC != tt_u)? t_tj.T_STATIC : ttStatic)+','+ 487 ((typeof t_tj.T_STICKY != tt_u)? t_tj.T_STICKY : ttSticky)+','+ 488 ((typeof t_tj.T_TEMP != tt_u)? t_tj.T_TEMP : ttTemp)+ 489 ');' 490 ); 491 t_tj.onmouseout = tt_Hide;
492 tt_DeAlt(t_tj); 493 } 494 } 495 } 496 if(tt_ie6) htm += '<iframe id="TTiEiFrM" src="javascript:false" scrolling="no" frameborder="0" style="filter:Alpha(opacity=0);position:absolute;top:0px;left:0px;display:none;"></iframe>'; 497 t_b = document.getElementsByTagName? document.getElementsByTagName("body")[0] : tt_db; 498 if(t_b && t_b.insertAdjacentHTML) t_b.insertAdjacentHTML("AfterBegin", htm); 499 else if(t_b && typeof t_b.innerHTML != tt_u && document.createElement && t_b.appendChild) 500 { 501 var t_el = document.createElement("div"); 502 t_b.appendChild(t_el); 503 t_el.innerHTML = htm; 504 } 505 else 506 document.write(htm); 507 if(document.getElementById) tt_ifrm = document.getElementById("TTiEiFrM"); 508} 509tt_Init();
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.