Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:01

Pop-Up menus & keeping hover effect of trigger link.


Poster: tepidarium
Dated: Sunday December 12 2004 - 21:28:59 GMT

Hapy Holidays Milonic :D

I have a question about using Pop-up menus.

I am going to use pop-up menus for my new design. I have the Milonic menus linked to CSS styled text-links. Is it possible to keep the CSS hover effect (for my text link that opens the Milonic Menu) on while the user has the mouse over the menu (not over the text link)?


Thank you for taking the time to look at this!


Poster: kevin3442
Dated: Wednesday December 22 2004 - 0:07:30 GMT

Hi tepidarium,

One way I can imagine to do it is to wrap the popup() and popdown() functions inside other functions that take care of both opening and closing the menu, as well as changing the style of the triggering link. I.e. (pseudocode only):
Code:
function openMenu(menuName, parentLink)
{
  parentLink.style = onStyle Code;
  popup(menuName);
}

function closeMenu(parentLink)
{
  popdown();
  parentLink.style = offStyle Code;
}

You would then call your openMenu() and closeMenu() functions with the onmouseover and onmouseout events of the text link.

I've never tried it, but it might also be worth trying relatively placed "main" menus instead of text links. in other words, instead of a text link, use a one-item, relatively positioned, alwaysvisible menu styled to look like a text link. Probably a hair-brained idea, but might be worth a few minutes to give it a try. Hmmm.....

Cheers,

Kevin


Poster: kevin3442
Dated: Wednesday December 22 2004 - 1:07:18 GMT

kevin3442 wrote:
...I've never tried it, but it might also be worth trying relatively placed "main" menus instead of text links....

Then again... it might also be a total waste of time.

Kevin