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:20
property that sets path color
Poster: freeman2002
Dated: Wednesday July 7 2004 - 16:14:05 BST
Hi,
I just finished building my menu and I noticed that when I click on an item in the menu, that cell and all the cells I passed through will take a light blue color (and I'm not talking about the OnMouseOver color here, but on the color that it will have ONCE I clicked).... what is the variable that sets that color?
thanks
Poster: kevin3442
Dated: Wednesday July 7 2004 - 16:27:37 BST
Hi,
In the menu style, pagebgcolor affects the background color of the page-matching items, and pagecolor affects the text color of those same items.
Kevin
Poster: freeman2002
Dated: Wednesday July 7 2004 - 16:44:21 BST
Thanks!
This menu is really nice, but the only negative point I found is that the variable names are not well chosen.
Poster: kevin3442
Dated: Wednesday July 7 2004 - 17:36:25 BST
Hi,
freeman2002 wrote:
Thanks!
You're welcome.
freeman2002 wrote:
This menu is really nice, but the only negative point I found is that the variable names are not well chosen.
On the whole, I would have to disagree. I think most of the property names follow from the functions they serve. I probably would have named some a little differently, but then someone would undoubtedly dislike the names I chose. It seems largely a matter of personal preference to me.
The best thing to do is familiarize yourself with the various Style Properties, Menu Properties, and Item Properties by reading therough the Quick Refs. Then you'll have an idea of what features are available. When it comes time to implement one, you may not remember its name, but you'll remember that you read about such a feature. Then you can simlpy peruse the list until you find the name of the feature.
Kevin
Poster: freeman2002
Dated: Wednesday July 7 2004 - 18:31:59 BST
I know but there are some standards that everybody uses like for example when u refer to a text color ( or font color ) there should be the word text or font somewhere in the variable name.
(ex. : pageFontColor or pageTextColor is more appropriate than pageColor IMHO)
but anyways like you say it's all a matter of taste
thanks again
Poster: Andy
Dated: Wednesday July 7 2004 - 18:41:09 BST
I agree that some of them could be better but unfortunately we are now stuck with them.
Changing them would cause all sorts of problems for people that need to upgrade and for people that have familiarized themselves with the current set.
What we could do is build a template that would allow you to choose your own variable names, shouldn't be too difficult to do but would obviously add to an already fat menu system so we'd need to add this as a user definable module.
I've added it to the To-Do list. As it's not a high priority I doubt if it will get done in the near future though but will be done at some point.
Cheers
Andy