Image Separator in sub menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Monica
Beginner
Beginner
Posts: 2
Joined: Fri Oct 31, 2003 4:10 pm

Image Separator in sub menu

Post by Monica »

Can anyone show me how to implement an image as a separator in the sub menu?
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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.
I.E.
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=#;");
aI("text=Item4;url=#;");
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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..
Ruth
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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.

Ruth
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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 page...it 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 :)
Ruth
Post Reply