Table Menu - Main Menu Coding

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
John A
Beginner
Beginner
Posts: 2
Joined: Sun Jan 01, 2006 1:56 pm

Table Menu - Main Menu Coding

Post by John A »

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
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Main menu in a table

Post by Migru »

Hi

I do it that way:

Code: Select all

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: Select all

<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://milonic.com/tablemenu.php
viewtopic.php?t=6527
http://milonic.com/menusample9.php
http://support.milonic.com/beginners/ta ... /index.htm
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

HAPPY NEW YEAR, Michael.

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

Ruth
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Menu in a table

Post by Migru »

Hi

Happy New Year, Ruth


Michael



and happy new year to everybody else, visiting the forum.
John A
Beginner
Beginner
Posts: 2
Joined: Sun Jan 01, 2006 1:56 pm

Post by John A »

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

Happy New Year to you both.

John A
Post Reply