Re: DOM and XHMTL

On Thu, 2005-05-05 at 09:40 +0200, Tommie Westling wrote:
> Hi,
> 
> I wonder if a can use DOM with XHMTL to do dynamic text features like
> expand and collapse?

Yes, by removing and adding nodes in tree.
You could do that using events and the display property of CSS as well.
The DOM page has a demo that does exactly that using Mouse Events and
CSS. If you click on a title of a paragraph, you will hide or show the
paragraphs:
http://www.w3.org/DOM/

Philippe

Received on Tuesday, 10 May 2005 13:58:38 UTC