image Property

DHTML, HTML, & CSS

image Property


Sets or retrieves the Microsoft® DirectAnimation® Image (daimageInternet Link Non-MSDN link) displayed by the anim:DA element.

Syntax

Scripting object.image [ = oImage ]

Possible Values

oImage DAImage object that specifies the image displayed by the anim:DA element.

The property is read/write with no default value.

Example

This example uses the image property to display a static DAImage.

Sample Code

<HTML>
<HEAD> 
<TITLE>image</TITLE>
<XML:NAMESPACE PREFIX="anim"/>
<STYLE>
.time       { behavior: url(#time); }
anim\:DA    { behavior: url(#default#anim); }
</STYLE>
<OBJECT ID="time" CLASSID="CLSID:476C391C-3E0D-11D2-B948-00C04FA32195">
</OBJECT>
</HEAD>

<BODY>
<P>The image below is specified using the image property.</P>
<SPAN ID="spanImg" CLASS="time" t:TIMEACTION="visibility" t:BEGIN="3" 
t:DUR="5">
</SPAN>
<DIV ALIGN="center">
    <anim:DA ID="da1" STYLE="width:200; height:200; z-index: -1;" />
</DIV>
<BR>

<SCRIPT LANGUAGE="JScript">
<!--
   // Assign a variable to the DA statics library
   m = da1.statics;
   // Create the DAImage
   img1 = m.ImportImage("/workshop/graphics/sun.gif");
   // Specify the DAImage to be displayed by the ANIM:DA tag
   da1.image = img1;
//-->  
</SCRIPT>
</BODY>
</HTML>
This feature requires Internet Explorer 5 or later. Click the icon below to install the latest version. Then reload this page to view the sample.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
anim

See Also

multimedia extensions to html+timeInternet Link, sound, statics

Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.