View Full Version : HV Menu problem

05-06-2005, 04:45 PM
I have the HV menu working great on my homepage: http://www.saintpaulsumc.org/

But when I put files in the subdirectories, the menu doesn't work or appear anymore: http://www.saintpaulsumc.org/ministries/youth.html

Help please!

05-07-2005, 02:43 AM
Well, something to consider is paths. For example, in your saintpaulsumc.html you have these two lines containing paths:

<script type='text/javascript' src='/files/exmplmenu_var.js'></script>
<script type='text/javascript' src='files/menu_com.js'></script>

See how they differ even before the filenames? If the file containing these references is in the root of the domain, the 'files' directory indicated by both statements could be the same directory on some systems but, once you leave the root, they will refer to two different directories. One off the root of the domain and one, a branch of the current directory. I've found that, with one notable exception I'll mention later, it is best to use absolute paths when using a menu of this sort throughout various directories on a site. Absolute paths in the configuration files (for images and links and any path mentioned therein) as well as in the links that access the menu's files on any pages on the site. An absolute path looks like this:


As I said, with one notable exception. If you are using this convention:


to create rollover effects, the colon in "http://www....etc." will confuse the script. I don't know of any way to use an absolute path in that situation but, have seen this work:


05-07-2005, 01:31 PM
Hi John,
I was afraid I wouldn't be able to use subdirectories, but you have solved the problem. Thanks!