OK, the menu does not work across frames. You can use it in one frame and you can open pages into another from it, but the submenus won't open into another frame because frames are in effect creating a new 'browser window' Although all of the 'frames' are on the same page, each frame is a separate browser window. There are three options if you need to have frames.
ONE: You can design the layout so that the submenus open in the same frame. Some people have done this by putting it in the top frame, horizontal menu and setting all the submenus to be horizontal also.
TWO: You can use a code that was designed to let you open submenus in a totally different frame. It was done by a person who used to help in the support area, it is NOT supported by milonic. You can find it
HERE This is NOT supported by Milonic and there would be some things you probably couldn't do. What it's doing is using a 'pop' function to open a menu in the frame. It's about the 3rd post or so down.
THREE [and I think this is the best] : You can use iframes because the menu will open across the 'borders' of iframes. If you need to have frames because of the top [haut.html] because something specific goes in there. You could redesign your frame layout to have only a top and bottom, and create an iframe in the bottom to emulate the now existing 'main' right hand side.
This would be the 'frameset' Just like you have now.
Code: Select all
<HTML>
<HEAD>
</HEAD>
<FRAMESET border=0 frameSpacing=0 rows=85*,156* frameBorder=no cols=* ?>
<FRAME name=topFrame SRC="haut.html">
<FRAME name=mainFrame SRC="bas2.html" scrolling=no>
</FRAMESET>
<BODY>
<P>
</BODY></HTML>
But instead of having bas2.html be another frameset which is loaded in the bottom frame you could code base2.html like this
Code: Select all
<HEAD>
<TITLE>(bas2.html) with iframe</TITLE>
<style type="text/css">
body{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:110px;FONT-FAMILY:verdana;
font-size:12px;
background-color:#000000;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0xp;}</style>
</HEAD>
<BODY><!--
Milonic DHTML Website Navigation Menu Version 5.0+
Copyright 2004 (c) Milonic Solutions Limited (UK). All Rights Reserved.
Please visit http://milonic.com/ for more information.
Although this software may have been freely downloaded, you must obtain a license before using it in any production environment.
The free use of this menu is only available for Non-Profit, Educational & Personal Web Sites who have obtained a license to use.
Free, Commercial and Corporate Licenses are available from our website.
You also need to include a link back to http://milonic.com/ if you use the free license.
All Copyright notices MUST remain in place at ALL times.
This includes the first three lines of this notice on every page that uses the menu.
If you cannot comply with all of the above requirements, please contact us to arrange a license waiver.
-->
<SCRIPT src="milonic_src.js" type=text/javascript></SCRIPT>
<PARAM value="http://milonic.com/"
copyright="JavaScript Menu by Milonic"></PARAM>
<SCRIPT type=text/javascript>
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>");
</SCRIPT>
<script>
function openIFrame(iFrameId,winURL)
{
ifId=gmobj(iFrameId)
ifId.src=winURL
}
</script>
<SCRIPT src="menu_data.js" type=text/javascript></SCRIPT>
<P><iframe frameborder="0" width="100%" height="100%" src="main.html" scrolling="auto" name="tempiframe" id="tempiframe" border="0" valign="top"> </iframe><p><h4>
</BODY></HTML>
As you see, the iframe loads the main.html. The style on the page has the left margin set at 110px and the rest at 0px. The 110px is only an approximation. Your menu data.js file has a top=10;left=10; and the menu would sit at the left of the iframe. When you do mouse over it will open the subs and they will open across the 'iframe' since it's an in line frame rather than another frame/browser window.
You actually have another option, but this is still in development though it works pretty well. There is a menu called treemenu. It is a click menu that when you click on an item that has a submenu it slides that menu down, like a collapsing menu.
Hope that helps
Ruth