Avatar of walker6o9
walker6o9

asked on 

Tooltip Hide Not Working Properly

So I have a tooltip function that displays some text when certain elements in the sidebar of my website are rolled over with the mouse.  The problem is that while the text goes away when I rollout within the sidebar, they do not go away when I move the mouse out of the sidebar and into the main body.  Does anybody know how to make it so that when I move the mouse into the main body the tool tip goes away?

My current tooltip Hide function.  Only hides when moved away within the sidebar.
function tt_Hide()
{
	if(tt_db && tt_iState)
	{
		tt_OpReHref();
		if(tt_iState & 0x2)
		{
			tt_aElt[0].style.visibility = "hidden";
			tt_ExtCallFncs(0, "Hide");
		}
		tt_tShow.EndTimer();
		tt_tHide.EndTimer();
		tt_tDurt.EndTimer();
		tt_tFade.EndTimer();
		if(!tt_op && !tt_ie)
		{
			tt_tWaitMov.EndTimer();
			tt_bWait = false;
		}
		if(tt_aV[CLICKCLOSE] || tt_aV[CLICKSTICKY])
			tt_RemEvtFnc(document, "mouseup", tt_OnLClick);
		tt_ExtCallFncs(0, "Kill");
		// In case of a TagToTip tooltip, hide converted DOM node and
		// re-insert it into document
		if(tt_t2t && !tt_aV[COPYCONTENT])
		{
			tt_t2t.style.display = "none";
			tt_MovDomNode(tt_t2t, tt_aElt[6], tt_t2tDad);
		}
		tt_iState = 0;
		tt_over = null;
		tt_ResetMainDiv();
		if(tt_aElt[tt_aElt.length - 1])
			tt_aElt[tt_aElt.length - 1].style.display = "none";
	}
}

Open in new window

JavaScriptAJAX

Avatar of undefined
Last Comment
Cem Türk

8/22/2022 - Mon