separatorcolor & separatorsize in sub-menu only

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Wavmixer
Beginner
Beginner
Posts: 8
Joined: Wed Dec 10, 2003 2:14 am

separatorcolor & separatorsize in sub-menu only

Post by Wavmixer »

I would like to be able to use separatorcolor & separatorsize in the sub-munu only without having it affect the main menu. Can this be done?
doodleelephant
Advanced
Advanced
Posts: 19
Joined: Sat Jul 05, 2003 5:43 pm
Location: UT, US
Contact:

Yah

Post by doodleelephant »

I believe you just need to create a separate style and apply it to the sub menu. I have no separator bars on my main menu, but I do on my submenu. I don't know where an example is on milonic's site, but you can check out my template HERE
Happy to Help!
Doodleelephant
Wavmixer
Beginner
Beginner
Posts: 8
Joined: Wed Dec 10, 2003 2:14 am

Post by Wavmixer »

That is exactly what I would like to do. My site is at http://www.wavmixer.com. Now, how do I apply a seperate style to each sub-menu?
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Just call the style you want for each sub using the style= parameter, the same way you did for your main menu.

Sounds like you need http://milonic.com/forum/viewtopic.php?t=2981.
John
Wavmixer
Beginner
Beginner
Posts: 8
Joined: Wed Dec 10, 2003 2:14 am

Post by Wavmixer »

Thanks jgillett,
I looked through the link you provided, however I do not see what I'm looking for.
Wavmixer
Beginner
Beginner
Posts: 8
Joined: Wed Dec 10, 2003 2:14 am

Re: Yah

Post by Wavmixer »

OK, I copied doodleelephant's menu_data.js and I see

with(mainStyle=new mm_style()){
and
with(subStyle=new mm_style()){

where I can make the adjustments that I want.
Thank you one and all.
Post Reply