Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:38

true false 1 or 0


Poster: MartinSpeed
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

closeonclick=1;
closeonclick=true;
closeonclick='true';

Is there a difference? Is one particular way accepted by more browsers?

thanks


Poster: Ruth
Dated: Friday March 23 2007 - 23:08:50 GMT

Hi,

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.

Ruth


Poster: MartinSpeed
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?


Thanks


Poster: Ruth
Dated: Tuesday March 27 2007 - 2:09:26 BST

Hi,

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.

Ruth