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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:28

Sub Menu offset


Poster: xMANIGHTx
Dated: Wednesday June 11 2003 - 20:58:26 BST

What value should I set in the menu arrays, to change the offset of the submenus from the main menu bar (horizontal)?
If I set the submenu offsets in the global definition, those are effective only in Main Bar>Sub>Sub. The offset I want to change is for Main Bar>Sub
The first line of menus.
I hope this is enough clear.
Milonic Version 3.x

Thanks in advance


Poster: xMANIGHTx
Dated: Thursday June 12 2003 - 9:34:49 BST

Sorry it was obvious and I'm a bit nut!
Just set the offset of all the "first row" subs like "offset=3", and so on :oops:


Poster: moholland
Dated: Wednesday June 25 2003 - 16:47:14 BST

I have been unable to solve this exact problem and I don't think I understand your solution. Could you please elaborate... perhaps some example code? Thanks.


Poster: xMANIGHTx
Dated: Wednesday June 25 2003 - 17:00:23 BST

For each menu tyou have TOP and LEFT properties to set right?
On the sub menus, right under your main menu bur, just set those TOP or LEFT properties to: "offset=3" or "offset = -3" and so on...
You have to put the " too in the array, just in the same way I write them down here: "offset=3" (3 is the n. of pixels)


Poster: jvaska
Dated: Sunday July 6 2003 - 11:39:34 BST

i can't figure out where i'm supposed to do this? in the drop down menu style (which i created)?...in the menu attributes part?...or in this parts of the scripts that have the actual drop down menu informations?

edit - actually, i am able to get this to work but only from right to left...how about up and down? this is what i did...

Code:
addmenu(menu=["news",
   ,"offset=-10",120,1,"",style2,,"left",effect,,,,,,,,,,,,
   ,"General","show-menu=generalnews",,,1
   ,"Technology","show-menu=technonews",,,1
   ])


?...thanks...jv


Poster: xMANIGHTx
Dated: Sunday July 6 2003 - 11:57:06 BST

Code:
addmenu(menu=["news",
   "offest=10",,120,1,"",style2,,"left",effect,,,,,,,,,,,,
   ,"General","show-menu=generalnews",,,1
   ,"Technology","show-menu=technonews",,,1
   ])

Try this..


Poster: jvaska
Dated: Sunday July 6 2003 - 11:59:24 BST

haha...now i get it...

all these ,,,,,,,,,,,,,,,, 's had me confused, but i got it...

thanks for the help!

jv


Poster: xMANIGHTx
Dated: Sunday July 6 2003 - 13:30:26 BST

:D

problems arise when resizing window


Poster: jspeybro
Dated: Tuesday July 29 2003 - 16:26:44 BST

Hi, I use this offset=-x too, but I noticed that when I resize my browserwindow, that the submenu moves to much to the left, so not all the items are visible anymore. :(

does someone else experience the same problem?
is it a bug?
can I do something about it?

thanks in advance

Johan


Poster: jspeybro
Dated: Tuesday July 29 2003 - 16:34:11 BST

never mind, I fixed already.
I just had to use the pixels instead of "offset=-x"

sorry for bothering

Johan