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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:45

submenu offset


Poster: daryl __at__ chem.ucsd.edu
Dated: Tuesday February 5 2002 - 17:29:29 GMT

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

Re: Submenu offset


Poster: Anonymous
Dated: Sunday May 19 2002 - 19:52:01 BST

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

submenu offst


Poster: Anonymous
Dated: Monday May 20 2002 - 21:31:43 BST

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 __at__ chem.ucsd.edu
My email-address is: sebastian.becker __at__ berlin.de


Poster: Andy
Dated: Monday May 20 2002 - 22:57:01 BST

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

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

Cheers
Andy

submenu offset


Poster: Anonymous
Dated: Tuesday May 21 2002 - 11:58:06 BST

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 ...


Poster: Andy
Dated: Tuesday May 21 2002 - 12:03:42 BST

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

submenu offset


Poster: Anonymous
Dated: Tuesday May 21 2002 - 21:20:23 BST

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.