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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:13

problem with cascading menu..


Poster: jeallen
Dated: Thursday August 26 2004 - 1:29:44 BST

I may be doing something unnatural here with the new menu here... So if I am, just let me know.

My goal is to have the side menu display the options for the sub-section that is currently displayed, while leaving the top menu alone to work normaly. I have a test page at:
http://www.fcc-hsv.org/index_test.html and clicking on "members" takes you here:
http://www.fcc-hsv.org/members/index_test.html

Idealy I would code this to work with one set of definitions for the sub-sections, but right now these are two standalone data files.

Seems OK when you first display, but when you click on 'About Us' menu and then 'Our Windows', I get an 'Runtime Error line 94 Object required' in either top or side menu.

The hoizontal menu works fine on a page by itself, this error only occurs when I include the vertical menu on the page.

BTW - I am VERY excited about the tree/cascaing menu project, it will help on several other web sites I am working with!

Cut and paster :)


Poster: Andy
Dated: Thursday August 26 2004 - 10:24:47 BST

Hi,

The update to the treemenu.js module should help fix the error.

http://www.milonic.com/treemenu.js

Cheers
Andy

No, didn't help


Poster: jeallen
Dated: Friday August 27 2004 - 23:01:05 BST

This may be something to do with the one menu open at a time logic, but the error occurs on lines where both showmenu= and URL= values appear.


Poster: Andy
Dated: Wednesday September 1 2004 - 11:22:34 BST

Looks like you'll need to create another "About Us" menu for the tree.

If I open the "About Us" menu from the tree then move up to "About Us" in the top bar, the menu moves, this is because its the same menu.

All you need to do is duplicate it.

Hope this helps
Andy

Other dual menu stuff...


Poster: jeallen
Dated: Wednesday September 1 2004 - 22:50:04 BST

Yep, my bad. Thanks!

I have one other oddity that may also be my code but, if you would take a look at: http://www.fcc-hsv.org/members/index_test.html

When you first load the page the text on the active item (red) should be white (pagecolor?) on the side menu. It behaves oddly when you mouse over and off, but will turn white stay white at some point. I have seen it turn white, stay white and go on and off bold when mousing over other items on the horizontal or side menus (I assume this is correct), but the text may also switch between white and black when mousing over other items.

Code:
with(tstyle1=new mm_style()){
onbgcolor="#CC3333" ;
oncolor = "#FFFFFF" ;
offbgcolor="#FFFFFF" ;
offcolor = "#000000" ;
onbold=1 ;
borderstyle = "solid" ;
bordercolor="#C0C0C0" ;
borderwidth=0 ;
separatorcolor="#C0C0C0";
separatorsize=1 ;
padding = 2 ;
fontsize = "12px" ;
fontstyle="normal" ;
fontfamily="Verdana, Tahoma, Arial" ;
pagecolor="FFFFFF" ;
pagebgcolor="#CC3333" ;
headercolor="#FFFFFF" ;
subimageposition="top right" ;
subimage="/img/clipart/black_arrow.gif"
onsubimage="/img/clipart/black_arrow_down.gif"
image="/img/clipart/trans2.gif" ;
subimagepadding=3 ;
imagepadding=2 ;
itemwidth=119 ;
}


Poster: Ruth
Dated: Thursday September 2 2004 - 6:22:20 BST

If you copied and pasted that code and it is therefore correct, then you have a hash mark missing on the pagecolor= which should be "#FFFFFF"; That is probably what is causing the odd behavior.

Ruth

Still workign oddly


Poster: jeallen
Dated: Thursday September 2 2004 - 17:54:51 BST

Thanks Ruth,
Yep I see the missing # sign and it's now fixed, but the behavior persists (see my previous post inthis thread)

http://www.fcc-hsv.org/members/index_test.html

Current (fixed) data:
Code:
with(tstyle1=new mm_style()){
onbgcolor="#CC3333" ;
oncolor = "#FFFFFF" ;
offbgcolor="#FFFFFF" ;
offcolor = "#000000" ;
onbold=1 ;
borderstyle = "solid" ;
bordercolor="#C0C0C0" ;
borderwidth=1 ;
separatorcolor="#C0C0C0";
separatorsize=1 ;
padding = 2 ;
fontsize = "12px" ;
fontstyle="normal" ;
fontfamily="Verdana, Tahoma, Arial" ;
pagecolor="#FFFFFF" ;
pagebgcolor="#CC3333" ;
headercolor="#FFFFFF" ;
subimageposition="top right" ;
subimage="/img/clipart/black_arrow.gif"
onsubimage="/img/clipart/black_arrow_down.gif"
image="/img/clipart/trans2.gif" ;
subimagepadding=3 ;
imagepadding=2 ;
itemwidth=119 ;
}