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:11
Submenu positionning
Poster: Serge34
Dated: Sunday March 29 2009 - 18:19:36 BST
Hi,
I've downloaded the menu_sample78_ver5_818 (Milonic menu).
After learning the frameset menu too, I've tried to convert the Milonic menu into frameset.
This was done in local mode, on my computer, with Firefox 3.0.8.
Although the exemple of frameset works very fine, the first submenu is not correctly positionned with the Milonic menu (but the second submenu level is correctly positionned beside the first submenu).
This first submenu appears where the mouse comes into the main menu, not at the begining of the text.
When passing quickly over the different topics of the main menu, the submenu changes at the initial place where it raised. (not following the cursor).
The _subOffsetTop and _subOffsetLeft do not seems to operate.
So, it works, but not fine.
Investigations let me think the version (5.760 for frameset and 5.818 for Milonic menu) could be a possible cause.
Is somebody can help me ?
Thank you so much.
Re: Submenu positionning
Poster: Ruth
Dated: Tuesday March 31 2009 - 5:14:03 BST
Hi,
I would be glad to help but I'd need a page to test. Either you need to put up a page we can see, or if you cannot do that, then I need all the html, css and menu data files that you have set up so I can test it. In other words, I'd need your frameset setup so I can make the same page and test to see what's going on.
Ruth
Re: Submenu positionning
Poster: Serge34
Dated: Tuesday March 31 2009 - 17:55:18 BST
Thank you Ruth for this answer. Which way to send you a zip containing these adapted files ?
Re: Submenu positionning
Poster: Ruth
Dated: Tuesday March 31 2009 - 19:15:00 BST
Hi,
You can send them to ruth at poems2u.com
Ruth
Re: Submenu positionning
Poster: Ruth
Dated: Tuesday March 31 2009 - 22:22:03 BST
Hi Serge,
OK, I got what you sent, but I need you to send me the menu_data_body.js file, the menu_data_context.js file, menu_data_header.js file. I don't have those files you are using, so I'll need to have them and also your logo image Once I have that stuff I can test the page with the files you are using. I have the program files, of course.
Ruth
Re: Submenu positionning
Poster: Serge34
Dated: Thursday April 2 2009 - 15:39:38 BST
Oups... Sorry
Resent...
Re: Submenu positionning
Poster: Ruth
Dated: Thursday April 2 2009 - 19:32:28 BST
Hi,
OK, the problem has to do with setting the offsets in the correct data file. For the offsets from the horizontal menu, the subOffsetLeft, it needs to be set at -130. This is to take care of the side frame which is about 130px. So, in the menu_data_header file you need to set the subOffsetLeft=-130
If you look at the downloaded frames in the extras folder, all the information about why you have to do what you do and how to do it is explained [though I have to admit, I had to read it again because I also set the offset in the wrong file - in the menu_data_body ]
Anyway, that should take care of the problem. You just have to remember that the offset gets set in the data file from which the sub opens, not in the subs data file
Ruth
Re: Submenu positionning
Poster: Serge34
Dated: Thursday April 2 2009 - 19:56:50 BST
Thank you Ruth for the time you take.
Basically, when I set the offset at -130 (it was 1000) in the menu_data_header script, nothing changes.
I'll try to find the problem with the informations you give me and shall go ahead in investigations.
I let you know when I find.
serge
Re: Submenu positionning
Poster: Ruth
Dated: Thursday April 2 2009 - 22:04:49 BST
Hi,
Well, I have no idea why that is happening. It is working fine for me. Here is the menu_data_header.js file, copy and paste that and try it again. Oh, and also, I noticed you have an old mm_navframe.js file. You need to open the extras folder, and the frames folder under that and get the newest one out of there, it's version 1.9, you have version 1.7. I don't know where you got the 1.7. Anyway, copy and paste this info as the menu_data_header.js file. You need put your existing file someplace so you don't overwrite it in case you need to go back to it. After all, this has links set up from the zip and I don't know if they are the same for your website.
Code:
fixMozillaZIndex=true; //Fixes Z-Index problem with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=0; // The time delay for menus to remain visible on mouse out
_menuOpenDelay=0; // The time delay before menus open on mouse over
_subOffsetTop=0; // Sub menu top offset
_subOffsetLeft=-130; // Sub menu left offset
with(horizStyle=new mm_style()){
bordercolor="#999999";
borderstyle="solid";
borderwidth=1;
fontfamily="arial, tahoma";
fontsize="72%";
fontstyle="normal";
headerbgcolor="#AFD1B5";
headerborder=1;
headercolor="#000099";
offbgcolor="#CFE2D1";
offcolor="#000000";
onbgcolor="#FEFAD2";
onborder="1px solid #999999";
oncolor="#000000";
onsubimage="Menus/Icons/on_downboxed.gif";
overbgimage="Menus/Icons/backon_beige.gif";
padding=3;
pagebgcolor="#CFE2D1";
pagecolor="#000066";
pageimage="Menus/Icons/db_red.gif";
separatoralign="right";
separatorcolor="#999999";
separatorwidth="85%";
subimage="Menus/Icons/downboxed.gif";
}
with(milonic=new menuname("Mainmenu")){
top=0;
left=129;
alwaysvisible=1;
margin=2;
orientation="horizontal";
style=horizStyle;
aI("showmenu=Cial;text=Commercial;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
aI("showmenu=DT;text=Données techniques;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
aI("showmenu=Sample quickref;text=Achats;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
aI("showmenu=Stocks;text=Magasins;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
aI("showmenu=Prod;text=Production;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
aI("showmenu=Log;text=Logistique;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
aI("showmenu=Qual;text=Qualité;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
aI("showmenu=GRH;text=GRH;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
aI("showmenu=Outils;text=Outils;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
}
drawMenus();
_menuCloseDelay=0; // The time delay for menus to remain visible on mouse out
_menuOpenDelay=0; // The time delay before menus open on mouse over
_subOffsetTop=0; // Sub menu top offset
_subOffsetLeft=-130; // Sub menu left offset
with(horizStyle=new mm_style()){
bordercolor="#999999";
borderstyle="solid";
borderwidth=1;
fontfamily="arial, tahoma";
fontsize="72%";
fontstyle="normal";
headerbgcolor="#AFD1B5";
headerborder=1;
headercolor="#000099";
offbgcolor="#CFE2D1";
offcolor="#000000";
onbgcolor="#FEFAD2";
onborder="1px solid #999999";
oncolor="#000000";
onsubimage="Menus/Icons/on_downboxed.gif";
overbgimage="Menus/Icons/backon_beige.gif";
padding=3;
pagebgcolor="#CFE2D1";
pagecolor="#000066";
pageimage="Menus/Icons/db_red.gif";
separatoralign="right";
separatorcolor="#999999";
separatorwidth="85%";
subimage="Menus/Icons/downboxed.gif";
}
with(milonic=new menuname("Mainmenu")){
top=0;
left=129;
alwaysvisible=1;
margin=2;
orientation="horizontal";
style=horizStyle;
aI("showmenu=Cial;text=Commercial;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
aI("showmenu=DT;text=Données techniques;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
aI("showmenu=Sample quickref;text=Achats;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
aI("showmenu=Stocks;text=Magasins;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
aI("showmenu=Prod;text=Production;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
aI("showmenu=Log;text=Logistique;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
aI("showmenu=Qual;text=Qualité;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
aI("showmenu=GRH;text=GRH;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
aI("showmenu=Outils;text=Outils;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
}
drawMenus();
I tried this in IE7, FF1.5, 2.0.0.18, 3.0.8, Opera 9.5, NN7.2, 9, Safari 3, Google Chrome and it works just fine in all of them. Let me know what happens. Don't forget to find and use that newer mm_navframe.js file and you might try clearing your cache, though I've never had a cache problem some people do.
Ruth
Re: Submenu positionning
Poster: Serge34
Dated: Sunday April 5 2009 - 7:56:20 BST
Yeeees ! It works fine.
Thank you Ruth for your help.
I noticed in my first post the version could be a problem :
Quote:
Investigations let me think the version (5.760 for frameset and 5.818 for Milonic menu) could be a possible cause.
and it was with the mm_navframe.js file...
I get this one in a file called mm_frames.zip I download directly from the link http://www.milonic.com/frames/mm_frames.zip in Menu : DHTML/Frames based menu.
Thanks again for your help
Serge