Way to have particular submenu open when page loads?

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
bgordon
Beginner
Beginner
Posts: 8
Joined: Wed Aug 07, 2002 12:25 am

Way to have particular submenu open when page loads?

Post by bgordon »

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

Thanks. -bg
bgordon
Beginner
Beginner
Posts: 8
Joined: Wed Aug 07, 2002 12:25 am

Use of "Always Visible"

Post by bgordon »

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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
bgordon
Beginner
Beginner
Posts: 8
Joined: Wed Aug 07, 2002 12:25 am

Where to put popup("menuname")?

Post by bgordon »

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
Post Reply