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: Thursday February 8 2018 - 06:02:30

is there an attribute for a colored separator bar?


Poster: run4it
Dated: Thursday July 31 2003 - 17:03:01 BST

I don't see any attribute that will allow me to specify a color for the seperator bar. Is there one? I'm using images for my buttons and would like the color of the bar to go with the color of my buttons instead of white which is my page color. I'm in version 3.3.11 by the way.

Thank you!


Poster: John
Dated: Thursday July 31 2003 - 17:29:13 BST

GET CURRENT :!:

See http://www.milonic.co.uk/menu/download.php. 3.5.15 is the latest in the v3 series. You're way behind.

As for the bar, last item in style...

"ffffff", // Menu Item Separator Color


Poster: run4it
Dated: Friday August 1 2003 - 17:11:34 BST

Thank you! Wow, things must develop quickly with the script. I believe I first downloaded it about 6 months ago. Could have been a little longer than that I guess, but not much.

PS - I see you are from ASU West. I graduated from the graduate program in technology out at ASU East in 2001.


I took a look at the code you are refering to. I think we are talking about two different things. I think you are are talking about a horizontal separator bar between the drop down menu items.

I am using images for my main menu items and the code looks like this:
,"<img src=graphics/b_overview.gif border=0>",""overview.shtml",,,1

The last attribute is the separator bar. It is either a 1 or a zero for yes or no. I don't see any attribute in the mainmenu code that would allow for changing the color of the bar between my images.


Poster: kevin3442
Dated: Saturday August 2 2003 - 9:59:44 BST

Since I'm awake, I'll just go ahead and butt in here John ;)

Hi Run4it,

Indeed development has been moving ahead lately. The menu went to a completely new development version -- v4 -- and went through beta, and is now in a release candidate stage with v5. You might consider upgrading to the latest if you are just starting the site. If it's an already established site, you will have to re-code your menus for the new version.

A couple of things regarding your question, with version 3:

(1) Most people think that the last attribute in a menu item definition is 1 or 0 (on or off), and that's how it is most often used. However, any value greater than 0 indicates that there should be a separator; the value itself specifies the separator's thickness in px. This can be especially useful if you don't want separators but want more control over the spacing of the menu items in a horizontal menu... set the separator's color to transparent or to the same as the menu's background color, then use wider separators to space the items further apart (works better than using nonbreaking spaces in the menu item text, since the separator doesn't become part of the highlighted menu item like the spaces do). Anyway... I digress...

(2) The separator attribute specifes a separator between the defined menu item and the next item, whether the menu is horizontal or vertical. If the menu is horizontal, the separator will be a vertical line; if the menu is vertical, the separator will be a horizontal line.

(3) John is correct (naturally!) about the color being set in the style. The 7th element in a menu array indicates which style array to use for that menu. The last element in the style array (the 20th element), specifies the color of the separator line.

Hope that helps,

Kevin


Poster: run4it
Dated: Monday August 4 2003 - 18:03:47 BST

Hello Kevin,

I updated to the latest version (?? It says version 3.X in the copyright).

I am able to change the width of the separator bar, but the color is coming from attribute #5 - the Menu Border Color, not attribute # 20 - the Menu Item Separator Color.

Why is that? What if I want a different color border (outer border), but a different color separator?


Poster: kevin3442
Dated: Saturday August 9 2003 - 1:01:56 BST

Hi,

Don't know what's up with that. I can't get any of my tests to behave that way. Is the version umber in mmenu.js 3.5.15? Are you able yet to post a sample page?

Kevin


Poster: run4it
Dated: Monday August 11 2003 - 16:31:27 BST

I got it working soon after myy last post. But to be honest, now I can't remember how. Probably something obvious I was just overlooking.

Thank you for your help.