Is there a way to use menus locally
Is there a way to use menus locally
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?
Is there a way to use menus locally
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.
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.
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.
John
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
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