Having problems with DHTML Menu? There is usually somebody here who knows the answer.
perldev
Mega User
Posts: 115 Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago
Post
by perldev » Wed Sep 29, 2004 9:49 pm
Can the top and left offset be reset for each tooltip? As follows:
Code: Select all
<A href="#" onmouseover="M_toolTips.top='offset=10';M_toolTips.left='offset=10';showtip('whatever');" onmouseout="M_toolTips.top='offset=20';M_toolTips.left='offset=10'; popdown()">LINK1</A>
<A href="#" onmouseover="M_toolTips.top='offset=20';M_toolTips.left='offset=20';showtip('whatever');" onmouseout="M_toolTips.top='offset=20';M_toolTips.left='offset=10'; popdown()">LINK2</A>
The default offsets are defined in tooltips.js.
Ruth
Team
Posts: 8763 Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:
Post
by Ruth » Thu Sep 30, 2004 3:14 am
I don't know if this will help. It's for popup function, but perhaps it will give you some information that can be applied to the tool tips. The bottom paragraph under popups talks about offsets, though this is about that function.
http://milonic.com/menu_methods.php
Ruth
perldev
Mega User
Posts: 115 Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago
Post
by perldev » Thu Sep 30, 2004 3:33 pm
Found the solution: reset MouseX and MouseY values before calling popup.