Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Monday March 30 2015 - 06:03:33
Dated: Friday March 23 2007 - 16:52:04 GMT
for the property values that can be set to true / false is it better to set them as
Is there a difference? Is one particular way accepted by more browsers?
Dated: Friday March 23 2007 - 23:08:50 GMT
If you set closeonclick= in the style area then you need to use "" around the true, if you set it in the item, do not use "", and as far as I know it doesn't matter whether it's true/false or 1/0, except that using numbers means no quotes in either place you use it.
Dated: Monday March 26 2007 - 14:39:08 BST
Thanks for clearing that up.
Is their any particular reason why it is =true for the style area, and ='true' for the item area?
and does this format carry through for all variables which can be declared in the style and item areas?
Dated: Tuesday March 27 2007 - 2:09:26 BST
You have it backwards. In the style area anything that is more than just a numeral takes quotes, i.e. fontsize=14; fontsize="14px"; and in the aI string there are no quotes. So let's say in one item you want to have fontsize set to em or pts for whatever reason, it would be fontsize=1.5em;
As to why it's like that.... it has something to do with programming, strings and such, not something I really know about.