XUL Programmer's Reference Manual
<deck>
The <deck> element provides a way to dynamically swap elements within a group. The <deck> is a container for any number of child elements that can be accessed as indexed items via JavaScript and the DOM, as in the following demo:
The flipDeck() function called when the button is clicked changes the index attribute of the deck container so that only the child referenced by that attribute is displayed. In Mozilla, the following example looks as follows: | ||||||||||||||||
index | ||||||||||||||||
Description
index is an attribute that specifies which of the deck's child elements is to be displayed.Syntax <deck index="index number">Example Notes The default value for index is 0.
|
||||||||||||||||
Last updated: 3/20/00 Ian
Oeschger
|