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

I am lost...Please help


Poster: ldeeder
Dated: Tuesday August 8 2006 - 19:32:05 BST

I posted a question earlier, and then found some examples that seemed to be a better fit for what I want to do. So I tried to implement, and here is what I eneded up with:

http://new.regionalitsolutions.com/test/file.htm

And here is the menu.js code (sorry for all the code):

_menuCloseDelay=500;
_menuOpenDelay=0;
_subOffsetTop=5;
_subOffsetLeft=0;
//retainClickValue=1;


with(HeaderStyle=new mm_style()){
/*bordercolor="#999";
borderstyle="solid";
borderwidth=1;*/
fontfamily="Verdana, Tahoma, Arial";
fontsize="10px";
fontstyle="normal";
offbgcolor="#eee";
offcolor="#444";
//onbgcolor="#fff";
oncolor="#900";
padding=3;
pagebgcolor="#fff";
pagecolor="#900";
//pageborder="1px 10px 10px 20px";
pageclass="pagesub";
separatorcolor="#999";
separatorsize=1;
offclass="offsub";
//openonclick=1;
//subimage="/menuimages/arrow.gif";
//subimagepadding=2;
//rawcss="border-bottom:1px solid black;";
}

SubHeaderStyle=new copyOf(HeaderStyle)
SubHeaderStyle.offbgcolor="#fff";
SubHeaderStyle.offcolor="#444";
SubHeaderStyle.onbgcolor="#fff";
SubHeaderStyle.oncolor="#900";
SubHeaderStyle.separatorheight=10;
SubHeaderStyle.padding=5;
SubHeaderStyle.subimage="/images/darrow.gif";
SubHeaderStyle.subimagepadding=3;
SubHeaderStyle.offclass="";
//SubHeaderStyle.subimageposition="center";

SubSubHeaderStyle=new copyOf(HeaderStyle)
SubSubHeaderStyle.offbgcolor="#fff";
SubSubHeaderStyle.offcolor="#444";
SubSubHeaderStyle.onbgcolor="#fff";
SubSubHeaderStyle.oncolor="#900";
SubSubHeaderStyle.padding=5;
SubSubHeaderStyle.separatorsize=0;
SubSubHeaderStyle.bordercolor="#999";
SubSubHeaderStyle.borderstyle="solid";
SubSubHeaderStyle.borderwidth=1;
SubSubHeaderStyle.subimage="/images/arrow.gif";
SubSubHeaderStyle.subimagepadding=2;
SubSubHeaderStyle.offclass="";
SubSubHeaderStyle.align="left";
//SubSubHeaderStyle.rawcss="border-top:0;";

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
//position="relative";
menuwidth="748px";
menualign="center";
itemwidth="100%";
align="center";
orientation="horizontal";
screenposition="center";
top=62;
style=HeaderStyle;
aI("text=Home Page;");
aI("text=About Us;url=home.html;");
aI("text=Admission;url=/test/new/admission/;pagematch=/admission/;");
aI("text=Academics;url=/test/new/academics/;pagematch=/academics/;");
aI("text=Alumni;url=/test/new/alumni.html;");
aI("text=Parents;url=/test/new/parents.html;");
}
/*
with(milonic=new menuname("aboutus")){
top=81;
orientation="horizontal";
screenposition="center";
menuwidth="748px";
menualign="center";
itemwidth="165px";
align="center";
style=SubHeaderStyle;
aI("text=More Information;url=;");
aI("text=More Information;url=;");
aI("text=More Information;url=;");
aI("text=More Information;url=;");
aI("text=More Information;url=;");
}

with(milonic=new menuname("admission")){
orientation="horizontal";
screenposition="center";
menuwidth="748px";
menualign="center";
itemwidth="165px";
align="center";
style=SubHeaderStyle;
aI("text=Information;url=;");
aI("text=Financial Aid;url=;showmenu=financialaid;");
aI("text=Request Information;url=;");
aI("text=Apply Online;url=/test/new/admission/apply.html;showmenu=apply;");
aI("text=More Admission;url=;");
}

with(milonic=new menuname("apply")){
orientation="vertical";
style=SubSubHeaderStyle;
aI("text=Entering-Freshman Student Application;url=;");
aI("text=Transfer Student Application;");
aI("text=International Student Application;url=;");
}

with(milonic=new menuname("academics")){
orientation="horizontal";
screenposition="center";
menuwidth="748px";
menualign="center";
itemwidth="165px";
align="center";
style=SubHeaderStyle;
aI("text=Information;url=;");
aI("text=Academic Programs;url=/test/new/programs.html;showmenu=programs;");
aI("text=Registrar's Office;url=;");
aI("text=Dean's Office;url=;");
aI("text=More Academics;url=;");
}

with(milonic=new menuname("programs")){
orientation="vertical";
overflow="scroll";
style=SubSubHeaderStyle;
aI("text=Anthropology;url=;");
aI("text=Art;url=;");
aI("text=Art History;url=;");
aI("text=Biochemistry;url=;");
aI("text=Biology;url=;");
aI("text=Business;url=;");
aI("text=Chemistry;url=;");
aI("text=Classical Studies;url=;");
aI("text=Communications;url=;");
aI("text=Computer Science;url=;");
aI("text=Economics;url=;");
aI("text=Education;url=;");
aI("text=English;url=;");
aI("text=Environmental Studies;url=;");
aI("text=Exercise Science;url=;");
aI("text=French;url=;");
aI("text=Geology;url=;");
aI("text=German;url=;");
aI("text=History;url=;");
aI("text=International Studies;url=;");
aI("text=Latin American Studies;url=;");
aI("text=Mathematics;url=;");
aI("text=Medieval-Renaissance;url=;");
aI("text=Music;url=;");
aI("text=Physics & Astronomy;url=;");
aI("text=Political Science;url=;");
aI("text=Psychology;url=;");
aI("text=Sociology;url=;");
aI("text=Spanish;url=;");
aI("text=Theatre;url=;");
aI("text=Theological Studies;url=;");
aI("text=Pre-Professional Programs;url=;");
}

with(milonic=new menuname("financialaid")){
orientation="vertical";
style=SubSubHeaderStyle;
aI("text=Financial Aid Office;url=;");
aI("text=More Information;url=;");
aI("text=More Information;url=;showmenu=more;");
aI("text=More Information;url=;");
aI("text=More Information;url=;");
aI("text=More Information;url=;");
}

with(milonic=new menuname("more")){
orientation="vertical";
style=SubSubHeaderStyle;
aI("text=More Information;url=;");
aI("text=More Information;url=;");
aI("text=More Information;url=;showmenu=more1;");
aI("text=More Information;url=;");
aI("text=More Information;url=;");
aI("text=More Information;url=;");
}
with(milonic=new menuname("more1")){
orientation="vertical";
style=SubSubHeaderStyle;
aI("text=More Information;url=;");
aI("text=More Information;url=;");
aI("text=More Information;url=;showmenu=more2;");
aI("text=More Information;url=;");
aI("text=More Information;url=;");
aI("text=More Information;url=;");
}
with(milonic=new menuname("more2")){
orientation="vertical";
style=SubSubHeaderStyle;
aI("text=More Information;url=;");
aI("text=More Information;url=;");
aI("text=More Information;url=;");
aI("text=More Information;url=;");
aI("text=More Information;url=;");
aI("text=More Information;url=;");
}*/


/*------------------------------------------------------------------------------*/

drawMenus();
/*
mm_maxLevels=1; // parameter [INTEGER] to fix the number of menus displayed to the specified maximum value.
resetAutoOpen=false; // parameter This bit allows the menu to re-open if sibling menus have been closed, displaying the menu again if required.
forceChildSubOpen=false; // Forces the opening of a child sub menu if the opening items URL matches the current page URL and also opens a sub menu

function _ocURL(){
if(_W.forceChildSubOpen){
alert()
_cln=_cip.length
for(_c=0;_c<_cln;_c++){
if(_mi[_cip[_c]][3]){
_mn=getMenuByName(_mi[_cip[_c]][3])
_cip[_cip.length]=_m[_mn][0][0]
}
}
forceChildSubOpen=0
}

_ombcu=new Array()
if(_cip.length>0){
for(_c=0;_c<_cip.length;_c++){
_ci=_cip[_c];
_mni=getParentItemByItem(_ci);
if(_mni==-1)_mni=_ci
if(_mni+" "!=$u){
while(_mni!=-1){
_ombcu[_ombcu.length]=_mni
_mni=getParentItemByItem(_mni);
if(_mni+" "==$u)_mni=-1
}
}
}
}

if(_startM){
setTimeout("_ocURL()", 50)
}
else{
if(_ombcu.length&&(_W.mm_maxLevels>0||_W.mm_maxLevels+" "==$u)){
for(_oma=_ombcu.length-1;_oma>-1;_oma--){
_i=_ombcu[_oma];
_I=_mi[_i];
_popi(_i);
clickAction(_i);
_ofMT=1;
if(_I[32]){
_tI=gmobj("img"+_i)
if(_tI&&_I[29])_tI.src=_I[29]
}
if(_oma==_W.mm_maxLevels)return
}
}
if(_ombcu.length){
itemOff(_ombcu[0])
hmL(_mi[_ombcu[0]][0])
}
}
}
_ocURL()*/

drawMenus();


Poster: John
Dated: Tuesday August 8 2006 - 22:41:45 BST

First things first. You're more versions down than I can count. You're running 5.42, the current version is 5.753. Update your menu, and then come back and let us know what's happening.

How do I update the version?


Poster: ldeeder
Dated: Tuesday August 8 2006 - 23:24:00 BST

Sorry for the stupid question, and for posting a new post instead of a reply.