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

My 2nd Try


Poster: Trite
Dated: Friday February 25 2005 - 20:49:30 GMT

*Sigh*

OK, I started over and tried to follow the directions but I am still screwing up. I even copied the code off of the milonic web site where it teaches you how to put the menu in the table cell.

Its the weirdest thing, when I go to test this locally I see NO menu bars, but when I upload it and go to the site I get two!

Heres the website: http://www.easternct.edu/depts/career/neocs/

Hopefully you can shine some light on this for me, and thanks.


Poster: Ruth
Dated: Saturday February 26 2005 - 1:33:21 GMT

I just downloaded the page. You need to update the menu files. You are using 5.11 we are now at 5.715. Next, the reason you see two menus is that the menu_data.js file you you are calling has this in it
Code:
with(milonic=new menuname("Main Menu")){
style=menuStyle;
screenposition="center"
top=241;
left=0;
//menuwidth="100%";
menualign="center";
alwaysvisible=1;
orientation="horizontal";
aI("text=WELCOME;showmenu=welcome;");
aI("text=PROSPECTIVE STUDENTS;showmenu=prospective;");
aI("text=ACADEMIC RESOURCES;showmenu=resources;");
aI("text=ALUMNI AND FRIENDS;showmenu=alumni;");
aI("text=ECSU SERVICES;showmenu=services;");
}
plus all the submenus you have to call, and then on the page you have
Code:
<SCRIPT>
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=155;
left=200;
alwaysvisible=1;
orientation="horizontal";
position="relative";
aI("text=Home;url=http://www.milonic.com/;status=Back To Home Page;");
aI("text=Menu Samples;showmenu=Samples;");
aI("text=Milonic;showmenu=Milonic;");
aI("text=Partners;showmenu=Partners;");
aI("text=Links;showmenu=Links;");
aI("text=My Milonic;showmenu=My Milonic;");
}
drawMenus();
in the table cell. So, because your menu_data.js file has a style declared as menuStyle, the menu in the table cell uses it and is colored correctly, BUT since the data file also has a main menu in it with a position listed that also shows on the page.

You have to download the newest version. Between the version you have and the new version there have been many fixes and also many additions. Make sure you keep your old files if they are still on the web in use right now. Then, if you are going to use the same data, take the menu_data.js file you now have on the web, open it, copy and paste the main menu into the table cell in script tags, remove the
Code:
screenposition="center"
top=241;
left=0;
//menuwidth="100%";
menualign="center";
and put in the position="relative"; make sure it has teh script tags and the drawmenus just like you have now. Once you have that placed in the table, go back to the menu_data.js file and cut out that main menu totally. You then have the main menu in the table cell, and it will open the submenus that are in the menu_data.js file.

You can rename that menu data file if you want [maybe table_menu.js or something so you remember what it is] Just make sure that when you put the calls for the menu files you put them the first thing after the body tag and if you change the name of the menu_data.js file then make sure you put the name of the new file in place of menu_data.js. Hope that helps.

Ruth