I have a Java file with sub menu’s that links (via include) to my Master Page. everything works fine, except that the menu is not linking correctly. I have used relative links, but obviously the master page inherits each page and the links are not created to link via all.

This is basically what one of my sub menus with more subs in java looks like

window.mm_menu_123456787_0_1_1 = new Menu("Tables",150,16,"Arial, Helvetica, sans-serif",10,"#ffffff","#ffffff","#777777","#C6282B","center","middle",3,0,1000,3,0,true,true,true,0,true,true);
    mm_menu_123456787_0_1_1.addMenuItem("Roll-Up Table","window.open('#','_self');");
     mm_menu_123456787_0_1_1.hideOnMouseOut=true;
     mm_menu_123456787_0_1_1.bgColor='#EDEDED';
     mm_menu_123456787_0_1_1.menuBorder=1;
     mm_menu_123456787_0_1_1.menuLiteBgColor='#EDEDED';
     mm_menu_123456787_0_1_1.menuBorderBgColor='#777777';
window.mm_menu_123456787_0_1 = new Menu("Three point One",150,16,"Arial, Helvetica, sans-serif",10,"#ffffff","#ffffff","#777777","#C6282B","center","middle",3,0,1000,3,0,true,true,true,0,true,true);
    mm_menu_123456787_0_1.addMenuItem(mm_menu_123456787_0_1_1,"window.open('#','_self');");
     mm_menu_123456787_0_1.hideOnMouseOut=true;
	 mm_menu_123456787_0_1.childMenuIcon="../../images/arrows.gif";
     mm_menu_123456787_0_1.bgColor='#EDEDED';
     mm_menu_123456787_0_1.menuBorder=1;
     mm_menu_123456787_0_1.menuLiteBgColor='#EDEDED';
     mm_menu_123456787_0_1.menuBorderBgColor='#777777';
  window.mm_menu_123456787_0_2_1 = new Menu("Tables",150,16,"Arial, Helvetica, sans-serif",10,"#ffffff","#ffffff","#777777","#C6282B","center","middle",3,0,1000,3,0,true,true,true,0,true,true);
    mm_menu_123456787_0_2_1.addMenuItem("Table","window.open('../Ranking/Dealer/Table.aspx','_self');");
	mm_menu_123456787_0_2_1.addMenuItem("Table Indication","window.open('../Ranking/Dealer/TableIndication.aspx','_self');");
	mm_menu_123456787_0_2_1.addMenuItem("Table Filter","window.open('../Ranking/Dealer/TableFilter.aspx','_self');");
	mm_menu_123456787_0_2_1.addMenuItem("Table Indication Filter","window.open('../Ranking/Dealer/TableIndicationFilter.aspx','_self');");
	mm_menu_123456787_0_2_1.addMenuItem("Roll-Up Table","window.open('#','_self');");
	mm_menu_123456787_0_2_1.addMenuItem("Roll-Up Table Highlight","window.open('#','_self');");
     mm_menu_123456787_0_2_1.hideOnMouseOut=true;
     mm_menu_123456787_0_2_1.bgColor='#EDEDED';
     mm_menu_123456787_0_2_1.menuBorder=1;
     mm_menu_123456787_0_2_1.menuLiteBgColor='#EDEDED';
     mm_menu_123456787_0_2_1.menuBorderBgColor='#777777';
  window.mm_menu_123456787_0_2_2 = new Menu("Charts",150,16,"Arial, Helvetica, sans-serif",10,"#ffffff","#ffffff","#777777","#C6282B","center","middle",3,0,1000,3,0,true,true,true,0,true,true);
    mm_menu_123456787_0_2_2.addMenuItem("Chart","window.open('../SplitReport/RollUp.aspx','_self');");
	mm_menu_123456787_0_2_2.addMenuItem("Filter Chart","window.open('#','_self');");
	mm_menu_123456787_0_2_2.addMenuItem("Pie Chart","window.open('#','_self');");
     mm_menu_123456787_0_2_2.hideOnMouseOut=true;
     mm_menu_123456787_0_2_2.bgColor='#EDEDED';
     mm_menu_123456787_0_2_2.menuBorder=1;
     mm_menu_123456787_0_2_2.menuLiteBgColor='#EDEDED';
     mm_menu_123456787_0_2_2.menuBorderBgColor='#777777';
	window.mm_menu_123456787_0_2_3 = new Menu("Combinations",150,16,"Arial, Helvetica, sans-serif",10,"#ffffff","#ffffff","#777777","#C6282B","center","middle",3,0,1000,3,0,true,true,true,0,true,true);
    mm_menu_123456787_0_2_3.addMenuItem("Table and Chart","window.open('#','_self');");
	mm_menu_123456787_0_2_3.addMenuItem("Table and Chart with Filter","window.open('#','_self');");
     mm_menu_123456787_0_2_3.hideOnMouseOut=true;
     mm_menu_123456787_0_2_3.bgColor='#EDEDED';
     mm_menu_123456787_0_2_3.menuBorder=1;
     mm_menu_123456787_0_2_3.menuLiteBgColor='#EDEDED';
     mm_menu_123456787_0_2_3.menuBorderBgColor='#777777';
window.mm_menu_123456787_0_2 = new Menu("three point Two",150,16,"Arial, Helvetica, sans-serif",10,"#ffffff","#ffffff","#777777","#C6282B","center","middle",3,0,1000,3,0,true,true,true,0,true,true);
    mm_menu_123456787_0_2.addMenuItem(mm_menu_123456787_0_2_1,"window.open('#','_self');");
	mm_menu_123456787_0_2.addMenuItem(mm_menu_123456787_0_2_2,"window.open('#','_self');");
	mm_menu_123456787_0_2.addMenuItem(mm_menu_123456787_0_2_3,"window.open('#','_self');");
     mm_menu_123456787_0_2.hideOnMouseOut=true;
	 mm_menu_123456787_0_2.childMenuIcon="../../images/arrows.gif";
     mm_menu_123456787_0_2.bgColor='#EDEDED';
     mm_menu_123456787_0_2.menuBorder=1;
     mm_menu_123456787_0_2.menuLiteBgColor='#EDEDED';
     mm_menu_123456787_0_2.menuBorderBgColor='#777777';
  window.mm_menu_123456787_0 = new Menu("root",90,16,"Arial, Helvetica, sans-serif",10,"#ffffff","#ffffff","#777777","#C6282B","center","middle",3,0,1000,3,0,true,true,true,0,true,true);
  mm_menu_123456787_0.addMenuItem(mm_menu_123456787_0_1,"window.open('#', '_self');");
  mm_menu_123456787_0.addMenuItem(mm_menu_123456787_0_2,"window.open('#', '_self');");
   mm_menu_123456787_0.hideOnMouseOut=true;
   mm_menu_123456787_0.childMenuIcon="../../images/arrows.gif";
   mm_menu_123456787_0.bgColor='#EDEDED';
   mm_menu_123456787_0.menuBorder=1;
   mm_menu_123456787_0.menuLiteBgColor='#EDEDED';
   mm_menu_123456787_0.menuBorderBgColor='#777777';

And this is my master page code for the whole menu

<div class="nav"><ul>
              <li><a href="#" name="link9" id="link9" onmouseover="MM_showMenu(window.mm_menu_123456789_0,-15,25,null,'link9')" onmouseout="MM_startTimeout();">One</a></li>
              <li><a href="#" name="link8" id="link8" onmouseover="MM_showMenu(window.mm_menu_123456788_0,-10,25,null,'link8')" onmouseout="MM_startTimeout();">Two</a></li>
              <li><a href="#" name="link7" id="link7" onmouseover="MM_showMenu(window.mm_menu_123456787_0,-25,25,null,'link7')" onmouseout="MM_startTimeout();">Three</a></li>
              <li><a href="#" name="link6" id="link6" onmouseover="MM_showMenu(window.mm_menu_123456786_0,0,25,null,'link6')" onmouseout="MM_startTimeout();">Four</a></li>
              <li><a href="#" name="link5" id="link5" onmouseover="MM_showMenu(window.mm_menu_123456785_0,30,25,null,'link5')" onmouseout="MM_startTimeout();">Five</a></li>
              <li><a href="#" name="link4" id="link4" onmouseover="MM_showMenu(window.mm_menu_123456784_0,30,25,null,'link4')" onmouseout="MM_startTimeout();">Six</a></li>
              <li><a href="#" name="link3" id="link3" onmouseover="MM_showMenu(window.mm_menu_123456783_0,0,25,null,'link3')" onmouseout="MM_startTimeout();">Seven</a></li>
			  <li><a href="#" name="link2" id="link2" onmouseover="MM_showMenu(window.mm_menu_123456782_0,-40,25,null,'link2')" onmouseout="MM_startTimeout();">FAQ</a></li>
			  <li><a href="#">Help</a></li>
			</ul></div>

Is there perhaps a way to make sure that it does link, to rather go to the root folder and then link from there? I know that with asp.net I can use

<script language="JavaScript" src="<%=ResolveUrl("~/java/mm_menu.js") %>"></script>

But what would I use in java?

Thanks in advance for your help...i really appreciate it!!

First, you need to realize that Java != Javascript. There is a separate forum for Javascript. I've requested that one of the mods for this section move it there for you.

just have a "/" infront of my source folder, and link to all other folders and subfolders and pages...yeah!!

This question has already been answered. Start a new discussion instead.