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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:28

Way to have particular submenu open when page loads?


Poster: bgordon
Dated: Wednesday August 7 2002 - 0:28:11 BST

Is there a way to have a particular submenu open on a page when the page loads?

Thanks. -bg

Use of "Always Visible"


Poster: bgordon
Dated: Wednesday August 7 2002 - 3:49:49 BST

Further to my question...

I've tried the "Always Visible" bit, and it opens a submenu when the page loads, but it stays open (makes sense) even when another menu is displayed over it. If the other menu is smaller/shorter, then the always visible one shows behind it.

So the real question may be: Is there any way to have a submenu open when a page loads, but then close if another submenu is selected?

Thanks. -bg


Poster: Andy
Dated: Thursday August 8 2002 - 8:45:57 BST

You could try using the poup() function.

popup("menuname") will open a menu at it's specified location and close once another menu opens.

-- Andy

Where to put popup("menuname")?


Poster: bgordon
Dated: Thursday August 8 2002 - 21:23:24 BST

Thanks, Andy.

I put:

<script language="JavaScript">
<!--
popup("realestate");
//-->
</script>

right after the lines that load the menu "js" files in the body of the page, and that pops up the submenu. However, when I hover over another main menu item, which brings up a different submenu, the "realestate" submenu is still there, under the other menu.

Essentially, the open submenu is not closing once another menu opens.

Am I using popup() in the wrong place, or in an incorrect manner?

Thanks! -bg