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:24
blank spaces in menus
Poster: AlanM
Dated: Wednesday November 23 2005 - 4:34:09 GMT
I used Menu2 as a starting point. It's vertical, and the width is based on the longest menu item, as opposed to a background image. I want a second menu to be the same width, but don't know how to reference that.
Perhaps a better solution is to include the extra couple of items in the same menu, but specify a blank line between the two groups of menu items. Any idea how to do this?
Thanks,
Alan
Poster: Ruth
Dated: Wednesday November 23 2005 - 5:35:24 GMT
Hi,
Yes, you can use a header item. You can either leave it blank or put in a heading about the second menu section
Code:
aI("text= type=header;")"
The background color of that item will be whatever you set in the menuStyle for headerbgcolor. If there is going to be text, the text color would be what you set for the headercolor. You could also specify a height, if for example you wanted it very small in height you'd add height=3px; to the aI string.
Ruth
Thanks!
Poster: AlanM
Dated: Wednesday November 23 2005 - 14:27:07 GMT
Thanks, Ruth, that looks like it is exactly what I wanted. I wonder what aI stands for, and what parameters are available in it? I'm sure it's documented somewhere, but I wasn't able to find it.
Thanks,
Alan
Poster: Ruth
Dated: Wednesday November 23 2005 - 14:51:27 GMT
Hi,
I don't know. I guess we could make up names that seem appropriate....how about annotated Item? j/k I really don't know, I just know it is for the item.
If you look below my name you'll see a bunch of links. The bottom ones are for the properties you can assign in the style, menu and item sections. Some of them can be applied in any of the areas but some can only go in their respective section.
Ruth
Thanks again
Poster: AlanM
Dated: Wednesday November 23 2005 - 15:00:40 GMT
Thanks, Ruth, I did look at the links below your name, but none mentioned aI in particular. I'll experiment with it later today.
Thanks again,
Alan
Poster: Ruth
Dated: Wednesday November 23 2005 - 17:44:27 GMT
Hi Alan,
What do you mean experiment? Their is no reason to experiment as far as I know. The aI is that portion in the menu_data.js file where you would put the word you want to appear on the menu for that item, i.e. text=Home or an image if you'd prefer an image, or both an image and text, where you would put information as to the link, i.e. url=, and information as to how the link is going to work, i.e. target=, or if it's using a function url=javascript:, where you'd put information as to showing a submenu, if there is one for that particular 'aI' and so on.
The program 'reads' the aI and acts accordingly. So, I'm not sure what you mean by experiment with it. The link to the item properties tells you the various things you can use in the aI string, if they are things that are also style properties that means you could set it in the menuStyle section and it would apply to every aI string that is in a menu using the style called menuStyle, but if you want one item to be different then you can apply the particular thing in the aI string and it will take precedence so you could for instance put offbgcolor="#ffffff"; in the menuStyle and in one item you could put offbgcolor=#ff0000; and it would be red while all the rest in that menu would be white.
So, I'm not sure what you mean by experiment with aI you can't change that or the menu won't know what to do with it.
Ruth
Ruth
Experimenting
Poster: AlanM
Dated: Thursday November 24 2005 - 3:37:52 GMT
Sorry, I don't mean to upset you. I meant that I would try various combinations to see what works for me. Since this is similar to learning a new language, I just want to try a few different things to see what happens.
Poster: Ruth
Dated: Thursday November 24 2005 - 3:50:38 GMT
Hi Alan,
Re-reading it, I guess it did kind of come across as upset. Sorry 'bout that.
I think I might have misunderstood and thought you meant you were going to try changing things in the program which belongs to Milonic. There are some links below my name to different menu properties, there is also a link on the main site under DHTML Menu called Menu Properties Quick Reference Guide which has some info on methods and functions, global properties and then the same 3 properties I have listed below.
Ruth
Follow-up
Poster: AlanM
Dated: Thursday November 24 2005 - 4:29:19 GMT
Good evening, Ruth (it's 8:25 pm here),
I really appreciate your helping me to come up to speed with Milonic menus quickly. I will not reverse engineer your software for a couple of reasons: first, when I finish polishing some of my programs, I'd like to sell them, so I understand this issue. Secondly, I am WAY too busy to do that --- I'm lucky to find time to work on all my projects as it is!
Here's a link to our new site under construction. I've been chief judge for our school's science fair for the past decade or so, and on the committee for longer than that. I'm a physicist, amateur astronomer, and telescope builder, and I really enjoy teaching science to kids:
http://www.lakeyoungsptsa.org/sciencefair/Index.php
I hope to finish content and apply for a license in the next couple of weeks.
Alan
Poster: Ruth
Dated: Thursday November 24 2005 - 5:24:41 GMT
Hi,
Well it's not my menu, though I really love it. That's why I volunteer on the forum. I'm a retired teacher of Spanish. I play with the menu all the time trying different things especially with style. One day I'll get my experiments up.
There was one link I didn't think to give you. Demos
The ones at the top were done by Kevin to help people who wanted a particular action in the menu. He seldom gets a chance to come on anymore. The ones at the bottom are Milonic Bolt-ons.
Eye catching site! Enjoy your experiments.
Ruth