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: Saturday July 14 2012 - 06:07:23

A suggestion...


Poster: Ruth
Dated: Friday July 25 2003 - 22:34:40 BST

I really don't know much about code so don't know if this is even feasible..well without excess time to create it, and maybe I'm the only one that sees a use for this, but...
Right now if you set submenu offsets it goes for all submenus, it would be nice to be able to set different offsets so you can apply the offsets to various menus as you want them to come up.

Ruth


Poster: Hergio
Dated: Wednesday August 6 2003 - 21:20:04 BST

That can in fact be done. Version 3 does support this functionality.

Each menu is declared like so...
Code:
addmenu(menu=["home",
,,150,1,,XP,0,,effect,,0,0,,,,,,,,"margin=2;",

This means that this menu will display right below its parent. If you were to change it to say
Code:
addmenu(menu=["home",
90,95,150,1,,XP,0,,effect,,0,0,,,,,,,,"margin=2;",

that would make the menu show up 90px from the top of the window and 95 pixels from the left side of the window, regardless of where the parent is. You can then take that a step farther and do:
Code:
addmenu(menu=["home",
"offset=30","offset=20",150,1,,XP,0,,effect,,0,0,,,,,,,,"margin=2;",

Which will make the menu appear 30 lower and 20 pixels to the right of where it would have rendered if you had left them blank...so basically its an offset of (30,20) from where the parent menu is located. And you can do this for each menu individually, so you can have menus popping up anywhere you damn well please... :D . Best of luck!


Poster: Ruth
Dated: Thursday August 7 2003 - 0:51:59 BST

Wow, thanks sooooo much :) Gosh, maybe I can artistically design a pattern to go with my borders. j/k But, thanks it is so easy once you know how.
:D
Ruth