tooltip.js 18 KB

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