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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:31

Is there a way to use menus locally


Poster: mperemsky
Dated: Tuesday May 6 2003 - 21:49:15 BST

I can get my menus to work when I have them on my website, but cannot get them running locally. Is there a way to specify the base directory for working locally so that it can properly define the paths to the images and js files?


Poster: John
Dated: Wednesday May 7 2003 - 14:38:07 BST

The easiest way is to have your local site set up the same as the structure on your host. Another benefit to this is you don't have to constantly re-think what's where when you move from local to remote.

Is there a way to use menus locally


Poster: mperemsky
Dated: Wednesday May 7 2003 - 15:41:03 BST

Thanks. That works as suggested, but I was hoping that I would not have to move my directory around. I try to keep my websites under the 'My Webs' directory so that I do not clutter up my root level with yet more directories.


Poster: John
Dated: Wednesday May 7 2003 - 15:44:53 BST

Trust me, I do understand what you mean by 'clutter'. Things can get mesy pretty fast, but then sometimes the messy way is the better way :!:


Poster: Ian C
Dated: Thursday May 8 2003 - 8:33:53 BST

I have been trying to use the menu on my local site on my HD but cannot get it to work either.

Can you clarify this a bit more. I've got a bit lost.

Ian C


Poster: Ian C
Dated: Thursday May 8 2003 - 8:34:30 BST

I have been trying to use the menu on my local site on my HD but cannot get it to work either.

Can you clarify this a bit more. I've got a bit lost.

Ian C


Poster: John
Dated: Thursday May 8 2003 - 15:46:24 BST

There is a specific directory structure for your site at your ISP. You write your code to match that structure so things can be found when called (e.g., the location of your images folder, where you keep your menu .js files, etc.). You need to duplicate that structure on your HD so things will work locally.

You made a reference to "My Webs" directory, which gives me the shivers because it makes me think you are using FrontPage. If so, be extremely careful when editing the .js files. FP can, and does, do terrible things to JS (not to mention HTML) behind your back.


Poster: mperemsky
Dated: Friday May 9 2003 - 16:10:00 BST

Yes, the directory originally did come from FP, but I do not use it. I used it on a large site I had because it updated my links for me, but back to the point here.

If you have a site (e.g. http://www.geocities.com/mperemsky) then you can create a directory off of your root drive named mperemsky. Within your HTML code make references to objects specifying the path to the file. Let's say I have a directory structure as follows:

/mperemsky
/images
/js
/css
/menu

then I would have my links such as

<SCRIPT language="JavaScript" src="/mperemsky/menu/mmenu.js" type="text/javascript"></SCRIPT>

or in the menu_array.js images should be referenced as /mperemsky/images/imagename


Poster: Ian C
Dated: Saturday May 10 2003 - 5:28:12 BST

Thanks guys. I was doing this but had the path wrong in something which caused the problem. All fixed now and works like a charm

Ian C