Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:02

Problems with scrollbars


Poster: smat59
Dated: Thursday December 9 2004 - 21:11:58 GMT

hello!

I'd like my submenus to open over a scrollbar
i mean, my menu is in a frame so there is a scrollbar between my two frames
for the moment my subemenus is opened in the left frame and so it's cut
Excuse me for my poor explanation by i'm french! :oops:
thank you


Poster: Ruth
Dated: Thursday December 9 2004 - 23:33:14 GMT

Bonjour. Do you have a url? We need to see the web site.

Ruth


Poster: smat59
Dated: Friday December 10 2004 - 18:09:26 GMT

hello!

yes you can see the test page at :
http://atomiktuning3.free.fr/new

thanks a lot


Poster: Ruth
Dated: Friday December 10 2004 - 22:49:49 GMT

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:
<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:
<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://www.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://www.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://www.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