HBCMS更多的中文手册参考:

DUR Attribute | dur参数属性

DHTML中文手册

Sets or retrieves a value indicating the amount of time the element remains active or displayed.

dhtml语法

HTML<ELEMENT DUR = sTime... >
Scriptingobject.dur [ = sTime ]

DHTML可能的值

sTimeStringthat specifies one of the following values:
indefiniteElement remains active on the timeline for an indefinite amount of time.
durationAmount of time the element remains active or displayed. The time must be specified as described in Time Formats.

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

Remarks

Any media tag (img, media, etc.) has a default dur value based on the type of media. for movies, audio, and animated gifs, the default dur is built into the media and can be determined by calling the mediadur property. for static images, the default dur value is zero seconds. when used with any other type of element, the default value for dur is indefinite.

The DUR attribute is a value relative to the value of the element's begin attribute. by contrast, the end attribute represents an absolute value along the parent element's timeline starting at 0 seconds. do not use the dur attribute on the same element as the end attribute.

for microsoft?directmusic? if you set dur to be 0 on a playing segment, it will stop playing at the end of the next measure.

the dur property is read-only on the playitem object.

DHTML代码范例

This example uses the DUR attribute to display lines of text for different amounts of time.

<HTML XMLNS:t ="urn:schemas-microsoft-com:time">
<HEAD>
<STYLE>
.time{ behavior: url(#default#time2);}
</STYLE>
</HEAD>
<BODY BGCOLOR="white">
<SPAN CLASS=time STYLE="COLOR:Red;" BEGIN="0" DUR="5"
TIMEACTION="visibility">
<H3>Paragraph 1</H3>
<P>This is paragraph number one. It displays for five
seconds.</P>
</SPAN>
<SPAN CLASS=time STYLE="COLOR:Blue;" BEGIN="0" DUR="10"
TIMEACTION="visibility">
<H3>Paragraph 2</H3>
<P>This is paragraph number two. It displays for ten
seconds.</P>
</SPAN>
<SPAN CLASS=time STYLE="COLOR:Green;" BEGIN="0" DUR="indefinite"
TIMEACTION="visibility">
<H3>Paragraph 3</H3>
<P>This is paragraph number three. It displays
indefinitely.</P>
</SPAN>
</BODY>
</HTML>
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.

是否符合公共标准

This property is defined in Synchronized Multimedia Integration Language (SMIL) 2.0 Non-Microsoft link.

Applies To

t:ANIMATE, t:ANIMATECOLOR, t:ANIMATEMOTION, t:ANIMATION, t:AUDIO, t:EXCL, t:IMG, t:MEDIA, t:PAR, playItem, playList, t:REF, t:SEQ, t:SET, time2, t:VIDEO

更多语法参考

introduction to html+time, activedur, mediadur, repeatdur, segmentdur, simpleDur