Menu offsets when using Frames

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
Hingo
Beginner
Beginner
Posts: 7
Joined: Wed Jul 17, 2002 6:03 pm

Menu offsets when using Frames

Post by Hingo »

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
Numberz
Beginner
Beginner
Posts: 7
Joined: Wed Jul 17, 2002 9:48 pm

I'm having same problem and more, lol.

Post by Numberz »

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
sbueffel
Advanced
Advanced
Posts: 22
Joined: Wed Jul 10, 2002 4:43 pm

I had this

Post by sbueffel »

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
Numberz
Beginner
Beginner
Posts: 7
Joined: Wed Jul 17, 2002 9:48 pm

Looks different

Post by Numberz »

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
sbueffel
Advanced
Advanced
Posts: 22
Joined: Wed Jul 10, 2002 4:43 pm

Post by sbueffel »

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.
Hingo
Beginner
Beginner
Posts: 7
Joined: Wed Jul 17, 2002 6:03 pm

Thanks

Post by Hingo »

Many thanks for the info..sub menus are aligned correctly..well in IE6 anyway!

Andy
Numberz
Beginner
Beginner
Posts: 7
Joined: Wed Jul 17, 2002 9:48 pm

Thanks also!

Post by Numberz »

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
sbueffel
Advanced
Advanced
Posts: 22
Joined: Wed Jul 10, 2002 4:43 pm

Hide DIV

Post by sbueffel »

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.
Numberz
Beginner
Beginner
Posts: 7
Joined: Wed Jul 17, 2002 9:48 pm

Thanks and still...help! lol

Post by Numberz »

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
Numberz
Beginner
Beginner
Posts: 7
Joined: Wed Jul 17, 2002 9:48 pm

Oops!

Post by Numberz »

That URL won't work because of the menu?

Try going to http://www.thepaintersnetwork.com and clicking on COMMUNITY, then CHAT.

Thanks..
Numberz
Post Reply