anim:DA Element | anim Behavior | Internet Development Index |
Defines an instance of the Microsoft® DirectAnimation® viewer in an HTML document to render DirectAnimation objects and play DirectAnimation sounds.
Syntax
XML <anim:DA ID=sID /> HTML N/A Scripting N/A
Possible Values
sID String that specifies a unique identifier for the object.
Members Table
The following table lists the members exposed by the anim object. Click a tab on the left to choose the type of member you want to view.
Attributes/Properties
Property Description image Sets or retrieves the DirectAnimation Image (DAImage class) displayed by the anim:DA element. sound Sets or retrieves the DirectAnimation sound (DASound class) played by the anim:DA element. statics Retrieves an object containing the DAStatics class library used with DirectAnimation. Methods
Method Description addDABehavior Adds a DirectAnimation behavior (DABehavior class) to the run list when the behavior is not part of the animation model. removeDABehavior Removes a DirectAnimation behavior (DABehavior class) added by the addDABehavior method.
Remarks
The prefix anim is used to associate this attribute with an XML namespace. You must include this prefix when using the anim:DA element. To define this namespace prefix, include the following line of code in the head section of your HTML document.
<XML:NAMESPACE PREFIX="anim"/>You also must define the custom DA element and associate it with the default anim behavior. You can do this by adding the following line of code to the style block of your document.
<STYLE> anim\:DA { behavior: url(#default#anim); } </STYLE>You also must use the height and width properties, as shown in the following line of code, to make the DirectAnimation viewer display properly.
<anim:DA STYLE="width:400; height:200;" />Other inline style properties can be used to control the DirectAnimation viewer's position and z-index.
The anim:DA element is available as of Microsoft Internet Explorer 5, only in the Microsoft Win32® platform.
See Also
Introduction to HTML+TIME