Board Logo

trevdance - 12/7/2007 at 09:09 PM

I have implemeted into my website the Gold version with frames and it works very well. Although the menu points to some pages that are located on my domain, but not in the same directory as the menu. Can you tell me what changes to the :
<script language="JavaScript" src="menu_files/menu.js"></script>
<script language="JavaScript" src="menu_files/items.js"></script>
<script language="JavaScript" src="menu_files/template.js"></script>
<link rel="stylesheet" href="menu_files/menu.css">
under the <head> tag and also:
<script language="JavaScript">
new menu (MENU_ITEMS, MENU_TPL);
</script> just before the </body> tag I have ot make in order for the menu to still be visible across the frames.

The pages that ar elocated in the root directory work fine just not the pages the are located in a sub directory of the root.

Thank you

tigra - 12/12/2007 at 04:53 PM

you'll need to use absolute paths inside menu.js file and in the files links. i.e. if menu_files directory is location in the root folder of the website your paths will be:

<script language="JavaScript" src="/menu_files/menu.js"></script>
<script language="JavaScript" src="/menu_files/items.js"></script>
<script language="JavaScript" src="/menu_files/template.js"></script>
<link rel="stylesheet" href="/menu_files/menu.css">

inside menu.js:

var TMenu_path_to_files='/menu_files/';

Back to forum: