HBCMS更多的中文手册参考:

duration Attribute | Duration参数属性

DHTML文档教程

Sets or retrieves the length of time the transition takes to complete.

dhtml语法

HTML
{ filter:progid:dximagetransform.microsoft.filter-name(
    duration = fduration ... ) ... }
scripting
object.filters.item(
    "dximagetransform.microsoft.filter-name").duration [ = fduration ]

dhtml可能的值

fDurationFloating-point that specifies the length of time to complete the transition. The value is specified in seconds.milliseconds format (0.0000).

The property is read/write. The property has no default value.

Remarks

You can set the playback duration for a transition as a parameter of the play method. however, once you invoke the play method, the duration property becomes read-only for the duration of the playback.

DHTML代码范例

This example uses the duration attribute and the blinds filter to reveal one image replaceing another during a two-second interval. click the button to reveal the second image.

<SCRIPT LANGUAGE=JavaScript>
var sInitialSRC="/workshop/samples/author/dhtml/graphics/clouds.jpg";
var sFinalSRC="/workshop/samples/author/dhtml/graphics/circles.gif";
function doTrans()
{
theImg.filters.item(0).Apply();
theImg.src=sFinalSRC;
sFinalSRC=sInitialSRC;
sInitialSRC=theImg.src;
theImg.filters.item(0).Play();
}
</SCRIPT>
<IMG ID="theImg" src='/workshop/samples/author/dhtml/graphics/clouds.jpg';
style="width:200; height:200;
filter:progid:DXImageTransform.Microsoft.Blinds(Duration=2)">
<BR/><BR/>
<INPUT TYPE="button" value="Start Transition" onClick="doTrans()">
This feature requires Microsoft® Internet Explorer 5.5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

applies to

BlendTrans, RevealTrans, Barn, Blinds, Fade, GradientWipe, Inset, Iris, Pixelate, RadialWipe, RandomBars, RandomDissolve, Slide, Spiral, Stretch, Strips, Wheel, Zigzag