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:38

Sub-menu centered on main menu: how to do it?


Poster: rww
Dated: Monday March 15 2004 - 4:13:19 GMT

I'm using a horizontal menu that is nothing more than a floating bar from which another horizontal menu opens ( see it here ). The thing I'd like to accomplish is that the sub-menu opens centered on the floating bar. Since the whole thing is dynamically generated, a simple offset won't work as the width of the submenu will change.

Any ideas would be appreciated.

Thanks.
RWW


Poster: Maz
Dated: Monday March 15 2004 - 6:50:35 GMT

I find it a bit odd, how does anyone know the bar is a menu?
Be careful, its not advisable to use the word milonic in style names.

There was a post about positioning the submenu, but I think it was more javascript than I understood. The properities for it are listed in the milonic home page menu. but I think that was to create the same size submenu as the main menu. I suppose then you could use align=center.

It would be simpler to size each menuitem and submenu larger than the text. If the text is larger then the menu will grow.

maz


Poster: rww
Dated: Monday March 15 2004 - 12:28:02 GMT

maz wrote:
I find it a bit odd, how does anyone know the bar is a menu?


Don't you usually mouse over something when you see it drift onto the page at load?

maz wrote:
Be careful, its not advisable to use the word milonic in style names.


Huh? Care to explain that, please?

Thanks.
RWW


Poster: John
Dated: Monday March 15 2004 - 15:01:30 GMT

rww wrote:
maz wrote:
I find it a bit odd, how does anyone know the bar is a menu?


Don't you usually mouse over something when you see it drift onto the page at load?

I don't. Also, the bar comes in so quickly if you're not paying close attention you won't even see it move in. Further, it looks like nothing more than a standard <hr>, definitely not a menu.
maz wrote:
Be careful, its not advisable to use the word milonic in style names.


rww wrote:
Huh? Care to explain that, please?

Pretty clear, I think. 'Milonic' should be considered a reserved word. I haven't looked at your code, but using it, other than where it is already used in the code you received, can cause problems.


Poster: rww
Dated: Monday March 15 2004 - 15:52:01 GMT

jgillett wrote:
rww wrote:
maz wrote:
I find it a bit odd, how does anyone know the bar is a menu?

Don't you usually mouse over something when you see it drift onto the page at load?

I don't. Also, the bar comes in so quickly if you're not paying close attention you won't even see it move in. Further, it looks like nothing more than a standard <hr>, definitely not a menu.

I guess my idea of a standard <hr /> is different from yours, but I'm not here to debate that point. In reality, that's one of the reasons I asked another question in a post titled "Sub-menu default open; close on move to other item" for which there are as yet no responses.

jgillett wrote:
rww wrote:
maz wrote:
Be careful, its not advisable to use the word milonic in style names.

Huh? Care to explain that, please?

Pretty clear, I think. 'Milonic' should be considered a reserved word. I haven't looked at your code, but using it, other than where it is already used in the code you received, can cause problems.

The only place it appears in the code is in lines such as:
with(milonic=new menuname("Bar")){

I was looking for why the person posted that, actually. The only other place it occurs is in the acknowledgment at the bottom of my pages and as a part of a CSS class, milonicon or milonicoff, in which case it is not the reserved word any more.

Thanks, but I still don't have an answer for my original question as to centering the sub menu, or to the other post about an initially visible sub menu that either fades after a set amount of time or when one of the links is clicked.

RWW


Poster: Ruth
Dated: Monday March 15 2004 - 20:59:14 GMT

Yes, there is a way to do it. Maz was right on there being a topic and I'm in the same boat with it being pretty darned above my head! :) Here's a link to the topic. http://www.milonic.com/forum/viewtopic.php?t=3632

Also, there is a new section under the main site, under support/menu quick reference guides. It's called Methods and Functions. I think some of what was posted in that topic is there. que tenga buena suerte!

Ruth


Poster: kevin3442
Dated: Thursday March 18 2004 - 0:30:22 GMT

Ruth wrote:
...Also, there is a new section under the main site, under support/menu quick reference guides. It's called Methods and Functions....

Damn! How long has that been there?! And here I am still poking around in the code. Guess it pays to check things out more often!

Rww --
rww wrote:
Thanks, but I still don't have an answer for my original question as to centering the sub menu, or to the other post about an initially visible sub menu that either fades after a set amount of time or when one of the links is clicked.

I'm working my way through some older posts. On your site, I don't see the "floating bar" that was referred to earlier in this thread. I'm asuming you took a different approach? Is your centering issue still an issue?

I also haven't come across the "intially visible sub menu" thread yet, but I'll probably see it as I continue. Is it still an issue?

Kevin


Poster: Ruth
Dated: Thursday March 18 2004 - 0:54:37 GMT

Kevin, it's HERE for the submenu open on load and fading out or having other submenus being able to open over it when a call comes from the main menu.

Ruth


Poster: kevin3442
Dated: Thursday March 18 2004 - 1:00:32 GMT

Thanks Ruth. :) I'll have a look.