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

Table Menu - Main Menu Coding


Poster: John A
Dated: Sunday January 1 2006 - 13:08:38 GMT

Hi Everyone,

My first posting on this forum, but have been using Milonic Menu for some years on several sites.

I am working on a menu in a table cell and have it working fine as detailed in the support section about coding table menus.

One query I have; is it possible to script the main menu items themselves to avoid having to change each page where the table cell resides, which could be many, when there is a change in a main menu item?
John

Main menu in a table


Poster: Migru
Dated: Sunday January 1 2006 - 16:54:26 GMT

Hi

I do it that way:

Code:
with(milonic=new menuname("mainmenu")){
style=style1;
position="relative";
alwaysvisible=1;
orientation="horizontal";
ai......
ai......
}
drawMenus();


This code I save into a file, named: embedded_main_menu.js

In the table, where, this menu has to be embedded, insert code as follows:


Code:
<SCRIPT TYPE="text/javascript" src ="embedded_main_menu.js"></SCRIPT>


Hope I understood your query, amendmends can be done in the js files
(embedded_main_menu.js or menu_data.js..........)


Michael

It is described here:
http://www.milonic.com/tablemenu.php
http://www.milonic.com/forum/viewtopic.php?t=6527
http://www.milonic.com/menusample9.php
http://support.milonic.com/beginners/ta ... /index.htm


Poster: Ruth
Dated: Monday January 2 2006 - 0:16:01 GMT

HAPPY NEW YEAR, Michael.

You are 100% correct. The file is called rather than placing the main menu code in the table.

Ruth

Menu in a table


Poster: Migru
Dated: Monday January 2 2006 - 9:26:01 GMT

Hi

Happy New Year, Ruth


Michael



and happy new year to everybody else, visiting the forum.


Poster: John A
Dated: Monday January 2 2006 - 17:18:44 GMT

Michael and Ruth, thanks for the replies. I will give this a go.

Happy New Year to you both.

John A