problem with cascading menu..

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jeallen
Advanced
Advanced
Posts: 16
Joined: Sat Sep 27, 2003 9:23 pm
Location: Huntsville, AL USA
Contact:

problem with cascading menu..

Post by jeallen »

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 :)
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

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

http://milonic.com/treemenu.js

Cheers
Andy
jeallen
Advanced
Advanced
Posts: 16
Joined: Sat Sep 27, 2003 9:23 pm
Location: Huntsville, AL USA
Contact:

No, didn't help

Post by jeallen »

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.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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
jeallen
Advanced
Advanced
Posts: 16
Joined: Sat Sep 27, 2003 9:23 pm
Location: Huntsville, AL USA
Contact:

Other dual menu stuff...

Post by jeallen »

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

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 ;
}
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
jeallen
Advanced
Advanced
Posts: 16
Joined: Sat Sep 27, 2003 9:23 pm
Location: Huntsville, AL USA
Contact:

Still workign oddly

Post by jeallen »

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

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 ;
}
Post Reply