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
sub-menus always open
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
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