Andy Black wrote:
>
> Is there a way to dynamically change an element's CSS display value
> between 'none' and, say, 'inline'?
foo {
display: inline;
}
foo[bar] {
display: none;
}
Adding attribute "bar" hides element "foo". Removing attribute "bar"
displays element "foo".
--> Cleaner: use ``application properties'' instead of attributes.
See http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/properties.html
However adding and removing properties is only possible by programming
in Java[tm].
See
http://www.xmlmind.com/xmleditor/_distrib/doc/dev/dom.html#treeproperties
See
http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmledit/doc/Tree.html#putProperty(java.lang.Object,%20java.lang.Object)
> It would be nice to create a custom menu option, for example, that would
> toggle between "show indexing markup" and "hide indexing markup". If it
> is set to "show", then the indexing markup element(s) would have their
> CSS display set to 'inline.' If it is set to "hide", then these
> elements would have the CSS display value set to 'none.'