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:18

sub-menus always open


Poster: mhjb
Dated: Monday November 11 2002 - 0:28:57 GMT

Hi there

I'm currently working on a slight structural revamp of a site. You can see it here:

http://techs.co.nz/clients/fel/

I want the green and orangey submenus to be always open, with the white menu opening on mouseover. You can see the difficulties i'm having at the moment. I use Win2000/IE6. You can download my menu_array.js at

http://techs.co.nz/clients/fel/menu/menu_array.js

I'd really appreciate anyone's help.

cheerio
Matt


Poster: mhjb
Dated: Monday November 18 2002 - 1:12:58 GMT

has no one else ever had downwards menus always open before?

cheerio matt


Poster: kevin3442
Dated: Monday November 18 2002 - 7:56:57 GMT

Hi Matt,

I'm assuming you're referring to the "Always Visible" setting; the 8th element of a menu array? If so, I would guess that setting Always Visible to 1 would be the norm for anyone who uses a vertical main menu. Submenus are probably more rare to have always open, but they give a nice effect on your site, once they're in place.

Looking at your menu_array.js file, I'd have to say the the "new" and "existing" submenus initially open at x,y = 0,0 because they have no predefined position in their menu arrays. They don't know where else to go until they are re-opened underneath a calling main menu item. Note, for example, that your "main_menu" has it's Menu Top and Menu Left screen coordinates preset in its menu array (the 2nd and 3rd elements of the array, respectively), so it starts out where you want it. But the "new" and "existing" menu arrays do not have their Top (2nd element) and Left (3rd element) positions set; try setting them to the desired starting positions. If I were a sinner -- or if I had anyone sitting near me at the moment to bet -- I'd bet money that'll work!

Hope that helps,

Kevin