Image Separator in sub menu
Image Separator in sub menu
Can anyone show me how to implement an image as a separator in the sub menu?
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 <img src='mySep.gif'>;url=#;");
aI("text=Item2 <img src='mySep.gif'>;url=#;");
aI("text=Item3 <img src='mySep.gif'>;url=#;");
aI("text=Item4;url=#;");
I.E.
aI("text=Item1 <img src='mySep.gif'>;url=#;");
aI("text=Item2 <img src='mySep.gif'>;url=#;");
aI("text=Item3 <img src='mySep.gif'>;url=#;");
aI("text=Item4;url=#;");
Dave Hergert
Software Engineer
"Helping to make the menu better, one at a time."
Software Engineer
"Helping to make the menu better, one at a time."
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
Ruth
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."
Software Engineer
"Helping to make the menu better, one at a time."
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."
Software Engineer
"Helping to make the menu better, one at a time."
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
Ruth