Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:31
Menu offsets when using Frames
Poster: Hingo
Dated: Wednesday July 17 2002 - 20:47:02 BST
Hi,
I have configured a menu to open in a specific frame and it works fine apart from the sub menus are offset to the left by almost one main menu width.
I have tried to adjust with many different parameters but none have any affect.
Regards
Andy
I'm having same problem and more, lol.
Poster: Numberz
Dated: Wednesday July 17 2002 - 21:54:52 BST
Hi Hingo and others...
I am using just a header and main frame and am finding the links to the left, not under the headings.
Another super important question is this..
How do I actually point to the correct url's? As of now I just have wording to the effect of..
history,php?tp=
After the = sign I had typed in shorter versions of the actual links.
What do I do with these darn things?
Also, if I try to put a url in it's place, the history thing?, I can get the page but the links will activate but won't show the dropdown.
HELP!!
Thanks
Numberz
I had this
Poster: sbueffel
Dated: Wednesday July 17 2002 - 22:28:14 BST
I had this problem as well. It is because the frame demo uses three frames. Adjusting the width of the side frame shifts the position of the submenus. I asked for help and some kind person out there said he did this:
>Beginning at line 181 (in my file) the following statement occurs.....
> and my changes are in bold type.......
> if(menu[11])
> {
> fTop=pf.sy;
> fLeft=gp[1]+mp[1]+100 //Frames_Top_Offset;
> }
> else
> {..........................
>
> The bold type is the 100 number. I haven't tried adjusting this
> number to see what it would do, but you could and see if it does
> anything. Have you emailed Andy at Milonic for help, too?
This is using 3.3.18 so I don't know if will continue to work in 3.4.12. If it doesn't work for you in 3.3.18 I have the actually mmenu.js I can send to you that makes it work at http://www.flobee.net
Looks different
Poster: Numberz
Dated: Wednesday July 17 2002 - 23:11:00 BST
Hi Sbueffel..
This is what I have...
if(menu[11])
{
fTop=pf.sy;
fLeft=gp[1]+mp[1]+Frames_Left_Offset;
}
else
{
fTop=pf.sy+gp[0]+mp[0]+Frames_Top_Offset;
fLeft=100
}
tp=gpos(pf.mn)
if(fTop+tp[2]>(pf.sy+pf.wh))fTop=pf.wh-tp[2]+pf.sy
pf.spos(pf.mn,fTop,fLeft-100,null,null);
pf.popup(v1);
pf.ParentMenu=self
Looks a bit different, huh?
Any ideas?
Thanks
Numberz
Poster: sbueffel
Dated: Thursday July 18 2002 - 0:39:42 BST
Yes, you would replace
fLeft=gp[1]+mp[1]+Frames_Left_Offset;
with
fLeft=gp[1]+mp[1]+100 //Frames_Top_Offset;
That, I believe, is the only difference.
Thanks
Poster: Hingo
Dated: Thursday July 18 2002 - 8:11:11 BST
Many thanks for the info..sub menus are aligned correctly..well in IE6 anyway!
Andy
Thanks also!
Poster: Numberz
Dated: Thursday July 18 2002 - 11:09:37 BST
Does it not work with IE5.5 or lower or netscape?
One more question, lol.
I have a chat room that is loaded from another server and the dropdown goes behind it.
Is there a way to stop this from happening/
Thanks for all your help
Numberz
Hide DIV
Poster: sbueffel
Dated: Thursday July 18 2002 - 15:42:07 BST
To make the menu show over your chat window, use the hide div feature of the menu. It is explained in the samples under forms in the complex section.
Thanks and still...help! lol
Poster: Numberz
Dated: Thursday July 18 2002 - 17:38:38 BST
Suebbel...
Thanks and thanks to others
However, I did read the instructions for the form that i want to hide but am having trouble.
Might anyone take a look at this for me and look at the source?
http://www.thepaintersnetwork.com/chat.html
I would appreciate all help.
Thanks in advance..
Numberz
Oops!
Poster: Numberz
Dated: Thursday July 18 2002 - 17:40:32 BST
That URL won't work because of the menu?
Try going to http://www.thepaintersnetwork.com and clicking on COMMUNITY, then CHAT.
Thanks..
Numberz