HBCMS更多的中文手册参考:

timelineBehavior Property?deprecated)

DHTML中文手册

This page documents a feature of HTML+TIME 1.0, which was released in Microsoft?Internet Explorer 5. We recommend that you migrate your content to the latest version of HTML+TIME, which implements the SMIL 2.0 Working Draft. See the introduction to html+time overview for more information.

retrieves a microsoft?directanimation?number object containing the timeline behavior associated with the specified object.

dhtml语法

xmln/a
scripting[ obehavior = ] time.timelinebehavior

dhtml可能的值

oBehaviorObjectthat specifies the DirectAnimation number object containing the behavior associated with the specified object.

The property is read-only. The property has no default value.

Remarks

This property is deprecated.

This property allows you to incorporate multimedia elements, such as 2-D and 3-D animated images and sounds, into an HTML page with the anim:da element. use this property with html+time timelines to control directanimation content. this property is not part of the html+time specification.

Note  To ensure that pages using this property display properly in Microsoft Internet Explorer, complete the following steps:

  • Use #time instead of #default#time for the behavior declaration.
  • Include the time object in your page. The class identifier used to specify this object is 476C391C-3E0D-11D2-B948-00C04FA32195.

These actions are necessary only for pages that use HTML+TIME timelines to control DirectAnimation content.

DHTML代码范例

This example uses the timelineBehavior property to apply a timeline, created with HTML+TIME, to a simple animation that rotates an image.

<HTML>
<HEAD>
<TITLE>progressBehavior</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 begins rotating three seconds after the page loads and
continues rotating for five seconds.</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("../../common/sun.gif");
// Rotate the image at a rate of 60 degrees/second
img2 = img1.Transform(m.Rotate2RateDegrees(60));
// Apply the HTML+TIME timeline to the DAImage
img3 = img2.SubstituteTime(spanImg.timelineBehavior);
da1.image = img3;
//-->
</SCRIPT>
</BODY>
</HTML>
This feature requires Microsoft?Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

是否符合公共标准

This property is a Microsoft extension to HTML+TIME (Timed Interactive Multimedia Extensions) Non-Microsoft link.

Applies To

time

更多语法参考

introduction to html+time, onoffbehavior, progressBehavior