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: Select all
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