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

Image Separator in sub menu

Poster: Monica
Dated: Friday October 31 2003 - 15:14:53 GMT

Can anyone show me how to implement an image as a separator in the sub menu?

Poster: Hergio
Dated: Sunday November 2 2003 - 20:00:18 GMT

Dont think there is a property in the menu that you can set or anything, but you could put the HTML for the image in the menu item so at the end of the menu item you place the image.
aI("text=Item1&nbsp;<img src='mySep.gif'>;url=#;");
aI("text=Item2&nbsp;<img src='mySep.gif'>;url=#;");
aI("text=Item3&nbsp;<img src='mySep.gif'>;url=#;");

Poster: Ruth
Dated: Monday November 3 2003 - 20:34:48 GMT

Just a thought but if the separator is in a vertical menu wouldn't the image have to be it's own AI section? unless one could put a br code after the text of the AI section to get the image on a 'second' line..... just curious, and trying to stay awake for a few more hours so I don't wake up at 3am..

Poster: Hergio
Dated: Tuesday November 4 2003 - 4:43:16 GMT

Yeha Ruth, I would have to agree with you on that. A separate aI can do the trick or the < BR > would do it as well. The only downside to this implementation (in either the vert or horiz directions) is that the separator is part of a menu item or a menu item itself, so it highlights and changes the cursor and what not, so its not exactly what one might want. It can be worked around to not do that stuff, but in future editions maybe it can be a worth-wild feature addition.

Poster: Ruth
Dated: Tuesday November 4 2003 - 4:57:24 GMT

I agree, would be a nice option, I also found out that you can use HR if it's a wide submenu, and that works neat, too.


Poster: Hergio
Dated: Tuesday November 4 2003 - 5:22:50 GMT

I just checked it out, very Nice! i like it...and its all with the same menu? Its just checking to see if the page has colors and styles defined already and is pulling them into its own styles? Thats great, really gives each page a very nice unique feel, things are coordinated yet the menu can remain the same and have only one copy! Nice job.

Poster: Ruth
Dated: Tuesday November 4 2003 - 16:52:20 GMT

I couldn't have done it without you guys. Yes, it's only one menu, means only having to call one, code one..and actually, the styles on the pages come from one file I created in which I do a search replace for each of the color codes and then just paste in the head of each doesn't take anymore time than when we had to code the body tag on each page and it does allow for artistic creation with little extra work. Something like this would work great on sites that say color code different sections of their sites, they could use one menu but with the onclass and style they could have it match the colors of each 'subsection'. Thanks for all your great help!!! {oh, I still think having a 'default' color setup would be great...if anything happens because some browser doesn't do something right with the style the menu would then default to a particular default..... down the road, I know but just mentioning it so it's kept in mind :)