Tooltips don't work without visible menu?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
vikenk
Mega Advanced
Mega Advanced
Posts: 297
Joined: Tue Nov 29, 2005 7:38 pm

Tooltips don't work without visible menu?

Post by vikenk »

Hello everyone,

Using latest menu (5.739) and tooltips (2.2). I'm making a page that will *not* have the menu on it (the site *does* use the menu, but this page is a stand-alone calendar meant for printing only), but I still want the tooltips to be active.

I loaded the source files and the toolips.js file, but tooltips didn't work. So, I added the menu_data.js file and the toolips started working. But the problem is that I don't want the menu visible. So I added the following style to the page:

Code: Select all

<style type="text/css">
.mmenu
{
  position:absolute;
  display:none;
}
</style>
This is the code that Milonic supplies to hide the menu during printing. So, the menu is hidden, but now the toolips do *not* work. So....all the menu files are loaded, but hiding the menu causes tooltips to fail.

I can't post an url right now because the company I'm at restricts FTP transfers and I can't upload a sample.

Is this the intended design of the menu/tooltips? Tooltips cannot be used as a stand-alone module or with the menu hidden?

Thanks.

Viken K.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

It should work as long as you have calls for the base program files and the tooltips.js file.


Ruth
Last edited by Ruth on Sat Jan 07, 2006 5:40 am, edited 1 time in total.
vikenk
Mega Advanced
Mega Advanced
Posts: 297
Joined: Tue Nov 29, 2005 7:38 pm

Post by vikenk »

Sorry it took me so long to reply. I got it working. This is embarrasingly easy: I had forgot to include the link to Milonic in the page, so the tooltips weren't working properly.

I didn't realize the link would still need to be there even if the menu wasn't on the page.

Viken K.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi Viken,

No problem :)

I'm glad you figured it out. It would have taken me forever to figure that out.

Probably there are going to be others who don't think of that either, so thanks for posting the solution.

If there isn't an actual menu, many will not think about the link, but in reality it's an integrated module so even without a visible menu, the menu program is actually there.

Ruth
vikenk
Mega Advanced
Mega Advanced
Posts: 297
Joined: Tue Nov 29, 2005 7:38 pm

Post by vikenk »

Ruth,

This is what makes forums so great! You learn from other's mistakes :>)

I was also thinking a bit about the other "issue" I had: when I used the style to hide the menu, the toolips were hidden as well. Now that I think about it, it makes perfect sense. The tooltip is actualy a "micro-menu": a one-item menu, so to speak. So it makes sense: If I hide the menu, the tooltip would be hidden as well.

Viken K.
Post Reply