using menus in sub directories...

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
StarMan
Beginner
Beginner
Posts: 1
Joined: Thu Jun 22, 2006 11:02 pm

using menus in sub directories...

Post by StarMan »

Hi.

I scanned the forum looking for an answer 1st - but no luck - so here's my question:

I have a need to use the menu system in subdirectories. (I want different colored menus, etc.. I though I could just put a copy of the menu program in the subdirectory and change the data file... but... it appears the menu system reads out of the root directory only. Is this true?

Thanks for any insight!

-Wes
W Johnson
Star Legacy
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

You can put the menu in any directory you want you just have to make sure the calls for the menu files are correct on any pages where you want the menu to apprear, and those pages can be in any folder you want, also.

So for example, my site is

root with a whole punch of pages in it, plus folders
aboutme
borders
menu
textonly
writings

The menu files are in the menu folder, and are called on about 50% of the pages in the root, all in aboutme, borders and writings. I just use the path to the menu folder as the calls for the milonic_src.js, mmenudom.js, mmenuns4.js and my menu_data.js file.

Now, having said that, I have a feeling I'm misunderstanding what you want. Are you saying you want the menu to be on only certain pages that are in certain folders?

To give you some basic info:

You can make as many menu_data.js files as you want. You can name them whatever you want, i.e. my_menu.js, borders_data.js, menu1_data.js, menu2_data.js and so on. Or you can make one data file which has differently styled menus in it.

Styles are created at the top part of the menu_data.js file, and like creating many data files, you can use one file and create many styles, naming each differently and assigning whichever style you want to whichever menu.

Below my name is a link to the Beginners' Forum. It has some basic explanations which are a pretty quick read which might help you. You want to take a look at the Styling sections I, II, and III.

If you need anymore help, just post back. We are always glad to help out. :)

Ruth
Post Reply