is there an attribute for a colored separator bar?

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
run4it
Advanced
Advanced
Posts: 19
Joined: Tue Jul 29, 2003 11:37 pm
Location: olympia WA

is there an attribute for a colored separator bar?

Post by run4it »

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!
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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
John
run4it
Advanced
Advanced
Posts: 19
Joined: Tue Jul 29, 2003 11:37 pm
Location: olympia WA

Post by run4it »

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.
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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
run4it
Advanced
Advanced
Posts: 19
Joined: Tue Jul 29, 2003 11:37 pm
Location: olympia WA

Post by run4it »

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?
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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
run4it
Advanced
Advanced
Posts: 19
Joined: Tue Jul 29, 2003 11:37 pm
Location: olympia WA

Post by run4it »

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