Cannot open 2nd level sub menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
aeb@oakham.rutland.sch.uk
Beginner
Beginner
Posts: 5
Joined: Sun Oct 17, 2004 10:03 am

Cannot open 2nd level sub menu

Post by aeb@oakham.rutland.sch.uk »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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.
John
aeb@oakham.rutland.sch.uk
Beginner
Beginner
Posts: 5
Joined: Sun Oct 17, 2004 10:03 am

Post by aeb@oakham.rutland.sch.uk »

Thanks, John

Upgraded and a little account tidying.

Any ideas now?
Alick
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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...
John
aeb@oakham.rutland.sch.uk
Beginner
Beginner
Posts: 5
Joined: Sun Oct 17, 2004 10:03 am

Post by aeb@oakham.rutland.sch.uk »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

aeb@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...
Understood. Sometimes we all get stuck in one way or another! :)
aeb@oakham.rutland.sch.uk wrote:Many thanks for your prompt and expert advice.
My (our) pleasure. Glad it worked.
John
aeb@oakham.rutland.sch.uk
Beginner
Beginner
Posts: 5
Joined: Sun Oct 17, 2004 10:03 am

Post by aeb@oakham.rutland.sch.uk »

..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
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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: Select all

@media print{
  .mmenu
  {
     display:none;
  }
}
I think that should do it.

Cheers,

Kevin
aeb@oakham.rutland.sch.uk
Beginner
Beginner
Posts: 5
Joined: Sun Oct 17, 2004 10:03 am

Post by aeb@oakham.rutland.sch.uk »

Perfect!
Many thanks,
Alick
Post Reply