Question of tooltip position

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
perldev
Mega User
Mega User
Posts: 115
Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago

Question of tooltip position

Post by perldev »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
Mega User
Posts: 115
Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago

Post by perldev »

Found the solution: reset MouseX and MouseY values before calling popup.
Post Reply