Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:06
Cannot open 2nd level sub menu
Poster: aeb __at__ oakham.rutland.sch.uk
Dated: Sunday October 17 2004 - 14:01:06 BST
I've searched FAQ & posts... can anyone help:
I have a horizontal main menu and vertical submenus.
When I go through the submenu structure it works fine for two levels down, but at the third level it opens the submenu but then closes everything when I try to mouseover the third level.
My website: http://www.oakham.rutland.sch.uk/
I have tried playing around with _menuCloseDelay and _menuOpenDelay to no effect.
Here's my code:
_menuCloseDelay=500; // The time delay for menus to remain visible on mouse out
_menuOpenDelay=50; // The time delay before menus open on mouse over
_scrollAmount=3;
_scrollDelay=20;
_followSpeed=5;
_followRate=40;
_subOffsetTop=4; // Sub menu top offset
_subOffsetLeft=-6; // Sub menu left offset
[...main menu code...]
with(submenu=new mm_style()){
oncolor="#ffffff";
offcolor="#000000";
itemheight=12;
borderstyle="solid";
borderwidth=1;
bordercolor="#999999";
separatorcolor="#000000";
padding=4;
fontsize="10px";
fontstyle="normal";
fontweight="bold";
fontfamily="Arial";
offbgcolor="#ffffff";
onbgcolor="#C4AF8E";
subimage="/images/arrow_r.gif";
subimagepadding=4;
onsubimage="/images/arrow_w.gif";
Many thanks
Alick Brown
Poster: John
Dated: Sunday October 17 2004 - 21:23:22 BST
First things first, Alick - upgrade!
You are running v5.12 of the menu system, current is v5.50. We can only support the most current version of the menu. Let us know when you're set and we'll have a go at it.
BTW, please make sure you use the [code][/code] tags any time you post code here. Things tend to get lost otherwise.
Poster: aeb __at__ oakham.rutland.sch.uk
Dated: Sunday October 17 2004 - 23:49:14 BST
Thanks, John
Upgraded and a little account tidying.
Any ideas now?
Alick
Poster: John
Dated: Monday October 18 2004 - 2:03:57 BST
Hi Alick -
OK, this will take a little time (unless one of the other folks sees it first!). Here's why - on Mac/Safari I'm seeing everything with no problems; e.g., Houses/Middle School/Boarding/Girls/Buchanans. All the items hilight properly and stay put down to the last level.
On XP Pro/IE6 I see your failure - it gets to Girls, no hilight, and closes. Usually it's the other way around - IE works, and while Safari almost always does, it sometimes burps.
One quick possibility. The menu can get upset when placed in a <div>. Any way you can eliminate that, at least as a test?
This is a purely personal observation (discussed before here in the Forum), and has nothing to do with the problem, but I, and quite a few other folks around here (including the entire Team), greatly dislike having my browser page size and position messed with. On Win your site opens up full-screen in the upper left corner, on Mac it just moves to the upper left corner. Quite frankly - not appreciated.
Just a personal friendly thought.
I'll be working on the problem...
Poster: aeb __at__ oakham.rutland.sch.uk
Dated: Monday October 18 2004 - 9:28:57 BST
John - many thanks - that's the answer.
I had it in a div as everything else on the pages is positioned using div tags, but as the menu sets its own position it doesn't need its own div tag.
Now for some replacing across the site!
I imagine this should be safe for all browsers...
I take your comments about resizing.
I inherited the code. The old issue of do you want viewers to see your page as designed...
Many thanks for your prompt and expert advice.
Alick
Poster: John
Dated: Monday October 18 2004 - 14:52:19 BST
aeb __at__ oakham.rutland.sch.uk wrote:
I take your comments about resizing.
I inherited the code. The old issue of do you want viewers to see your page as designed...
I inherited the code. The old issue of do you want viewers to see your page as designed...
Understood. Sometimes we all get stuck in one way or another!
aeb __at__ oakham.rutland.sch.uk wrote:
Many thanks for your prompt and expert advice.
My (our) pleasure. Glad it worked.
Poster: aeb __at__ oakham.rutland.sch.uk
Dated: Monday October 18 2004 - 20:09:25 BST
..now I remember why I put the menu inside a div - to hide it when printing, a solution I picked off a previous forum discussion.
Is there an answer to this other than putting it inside a div (which seems to cause problems in IE)?
Alick
Poster: kevin3442
Dated: Monday October 18 2004 - 23:54:50 BST
Hi Alick
There's a built-in class in the menu code called .mmenu. You can apply a media type to it in your css to to keep the menu from printing:
Code:
__at__ media print{
.mmenu
{
display:none;
}
}
.mmenu
{
display:none;
}
}
I think that should do it.
Cheers,
Kevin