This content has been marked as final.
Show 1 reply
-
1. Re: Tooltip showed externally with setTimeout
kiribati8 Sep 18, 2008 4:32 AM (in response to kiribati8)So I finally found solutiion. It's working in IE 6 and 7, Firefox 2 and 3, Opera 9. It is not the best solution, but it's working so it is good enough for me :).
Jsp code is the same as above, only javascript has changed:var timerID = 0; var tooltipObj; var tooltipEvent; function showToolTip(tooltip, e, timeout) { tooltipObj = tooltip; tooltipEvent = Object.clone(e); if(window.event) { tooltipEvent = Object.clone(window.event); } if(tooltip != undefined) { timerID = setTimeout('showAfterDelay()', timeout); } } function showAfterDelay() { tooltipObj.show(tooltipEvent); } function hideTooltip(tooltip, e) { if(timerID) { clearTimeout(timerID); timerID = 0; } if(tooltip != undefined) { tooltip.hide(e); } }