submenu offset

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
daryl@chem.ucsd.edu
Beginner
Beginner
Posts: 1
Joined: Sun May 19, 2002 7:24 pm

submenu offset

Post by daryl@chem.ucsd.edu »

Hello,

I'd like to have a small horizonal (2 px to the right) and vertical offset (8 px down) for the submenu items. How can I realize that?

Thanks for any working suggestions!

Regards,

Sebastian
Guest

Re: Submenu offset

Post by Guest »

the suboffset variables are overridden by the screen position or pixel location variables. You can always change the offset variables as well. If you need further assistance please provide a site where we can see the issue and mention of what browser you are using when you see it.
Thanks,
Yadin
Sebastian Becker

submenu offst

Post by Sebastian Becker »

Hello,

you can have a look at http://www.claus.de/index.htm to see a prototype.

The submenu items should be below the blue bar.

Thanks for your help, regards,

Sebastian


By the way, i'm not: All about daryl@chem.ucsd.edu
My email-address is: sebastian.becker@berlin.de
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

You should be able to set Top and Left offsets with the following:

"offset=8", // Top position
"offset=-2", // Left position

Cheers
Andy
Sebastian Becker

submenu offset

Post by Sebastian Becker »

Hi, Andy,

> You should be able to set Top and Left offsets with the following:
> "offset=8", // Top position
> "offset=-2", // Left position

but that's the offset for the main menu, isn't it?

And then there is suboffset_top and suboffset_left, but that's the offset of the subsubmenu, isn't it?

What I need is to influence the distance between the main menu items and all layers, which are invisible by default.

Cheers,

Sebastian


P.S.
I also have a feature request: In some cases (f.e. for external guestbooks) it may be useful to define a base URL to make all links absolute. This could easily be implemented by adding a variable. Maybe you could add this to future versions ...
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi Sebastian ,

> but that's the offset for the main menu, isn't it?

Not at all, each menu can have their own offsets but you need to declare them on all menus.

As for the feature request, it shouldnt be too difficult. Can you send me a sample URL of how this should work

Cheers
Andy
Sebastian Becker

submenu offset

Post by Sebastian Becker »

Hi, Andy,

so this is my menu ( test site: http://www.claus.de/index.htm ) :

addmenu(menu=[
"mainmenu",14,"offset=150",70,0,"left",style1,1,"left",0,0,1,0,,,0,0,,,,,
,"home"index.htm",,"Homepage",0
,"person", "show-menu=person",,"Zur Person",0
,"projects", "show-menu=projects",,"Projekte",0
,"partner", "show-menu=partner",,"Partner",0
,"contact", "show-menu=contact",,"Kontakt",0
,"guestbook", "guestbook/guestbook.php",,"Gästebuch",0
])

addmenu(menu=["person",,,90,1,,style2,0,"left",effect,0,,,,,,,,,,,
,"Zur Person","about_de.htm",,"Zur Person",1
,"Referenzen","references_de.htm",,"Referenzen",1
,"Bilder","pictures_de.htm",,"Bilder",1
,"Webcam","webcam_de.htm",,"Webcam",1
])

...

Now I have a problem getting a vertical offset of 9 px between the menus "mainmenu" and "person" and a vertical offset of 2 px for "person". Can you possibly tell me what to change?

As for the feature request, I've found another solution for me: I simply have two menu arrays now, one with relative links and another with absolute links for the guestbook.

Thanks for your great work and your help.
Regards from Berlin,

Sebastian

P.S.
Instead of your site the content of http://www.databasewatch.com was displayed today.
Post Reply