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:30

menu headings disappear


Poster: Tillmansue
Dated: Friday August 24 2007 - 1:40:25 BST

I'm having trouble figuring out how to keep the menu headings and subheadings remain visable when you are on their current page. I've tried complete urls and that doesn't seem to work. Please see the code below.

fixMozillaZIndex=true; //Fixes Z-Index problem with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;




with(menuStyle=new mm_style()){
bordercolor="#000000";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="100%";
fontstyle="normal";
headerbgcolor="#a53118";
headercolor="#ffffff";
offbgcolor="#000000";
offcolor="a53118";
onbgcolor="#a53118";
oncolor="#ffffff";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=3)";
padding=4;
pagebgcolor="#000000";
pagecolor="black";
separatorcolor="#999999";
separatorsize=1;
subimage="images/white arrow.gif";
subimagepadding=2;
}

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=10;
orientation="horizontal";
style=menuStyle;
top=115;
aI("text=Home;url=http://www.cchso.com/index.html;");
aI("showmenu=Performances;text=Performances;");
aI("showmenu=Information;text=Information;");
aI("showmenu=Booster;text=Booster Club;");
aI("showmenu=Meet;text=Meet the Orchestra;");
aI("showmenu=Links;text=Links;");
}

with(milonic=new menuname("Performances")){
overflow="scroll";
style=menuStyle;
aI("text=All-Region/All-State;url=http://www.cchso.com/calendar.html#region;");
aI("text=Concert Calendar;url=chttp://www.cchso.com/alendar.html#concert;");
aI("text=Spring Trip;url=http://www.cchso.com/calendar.html#spring;");
aI("text=UIL Schedule;url=http://www.cchso.com/calendar.html#uil;");

}

with(milonic=new menuname("Information")){
style=menuStyle;
aI("text=Forms;url=http://www.cchso.com/forms.html;");
aI("text=Handbook;url=http://www.cchso.com/handbook.pdf;");

}

with(milonic=new menuname("Booster")){
style=menuStyle;
aI("text=Board;url=http://www.cchso.com/board.html;");
aI("text=Information;url=http://www.cchso.com/information.html;");
}

with(milonic=new menuname("Meet")){
style=menuStyle;
aI("text=Chamber Orchestra;url=http://www.cchso.com/chamber.html;");
aI("text=Orchestra Director;url=http://www.cchso.com/director.html;");
aI("text=Symphony Orchestra;url=http://www.cchso.com/symphony.html;");
}

with(milonic=new menuname("Links")){
style=menuStyle;
aI("text=Cypress Creek High School;url=http://schools.cfisd.net/cycreek/newsite/index.php;target=_blank");
aI("text=Cypress Fairbanks ISD Website;url=http://www.cfisd.net;target=_blank");
aI("text=Tri-M Honor Society;url=http://www.menc.org/information/trim/main_trim.html;target=_blank");
aI("text=UIL Information;url=http://www.uil.utexas.edu/;target=_blank");

}


drawMenus();


Poster: Ruth
Dated: Friday August 24 2007 - 18:23:04 BST

Hi,

If you're talking about the submenus remaining open when on a matched page then you need the openmenusbyurl.js module from here

http://www.milonic.com/menumodules.php

It's toward the bottom.

If I've misunderstood, could you tell me a little more about what you want?

Ruth

Menu items blacked out


Poster: Tillmansue
Dated: Saturday August 25 2007 - 1:18:13 BST

Hi Ruth,

Go to http://www.cchso.com and click on Meet The Orchestra - Chamber. Then notice the words Meet the Orchestra and Chamber now no longer show up. I tried adding the module openmenusbyurl.js along with the correct syntax but that didn't help.

Thanks,
Susan


Poster: Ruth
Dated: Saturday August 25 2007 - 6:22:56 BST

Hi,

Actually, that module is to keep the submenu open when you are on a page that matches any item in it.

The reason your text is disappearing is because you have the offbgcolor as black [#000000] and the pagebgcolor as black [#000000] and the pagecolor as 'black'. So, when you get a page that matches the item the background color remains black and the text becomes black.

All the 'page' properties have to do with the 'you are here' highlighting type thing. So, either change your pagebgcolor to a different one, or change your pagecolor. Just as a suggestion, I think I might make the pagebgcolor the offcolor #a53118 and leave the pagecolor as black.

Ruth