HBCMS更多的中文手册参考:

segmentTimeToSimpleTime Method

DHTML中文手册

Converts a value in the element's segment timeline to the corresponding point in the element's simple timeline.

dhtml语法

simpleTime = object.segmentTimeToSimpleTime(segmentTime)

Parameters

segmentTime Required. Integer that specifies a point on the element's segment timeline.

Return Value

Integer that specifies the point in the element's simple timeline that corresponds to segmentTime.

DHTML代码范例

This example uses the segmentTimeToSimpleTime method to compare the value of the element's segment timeline to the corresponding point in the element's simple timeline.

<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<HEAD>
<TITLE>segmentTimeToSimpleTime Method</TITLE>
<?IMPORT namespace="t" implementation="#default#time2">
<SCRIPT>
window.onload = fnOnLoad;
function fnOnLoad()
{
// Set up a timer to watch the time values.
window.setInterval(fnUpdateTimes, 100);
}
function fnUpdateTimes()
{
s1.innerHTML = "&nbsp;segmentTimeToSimpleTime:&nbsp;" +
(a1.segmentTimeToSimpleTime(div1.currTimeState.activeTime));
s2.innerHTML = "&nbsp;simpleTime:&nbsp;" +
(a1.currTimeState.simpleTime);
}
</SCRIPT>
<STYLE>
.time{behavior: url(#default#time2);}
</STYLE>
</HEAD>
<BODY TOPMARGIN=0 LEFTMARGIN=0 BGPROPERTIES="FIXED" BGCOLOR="#FFFFFF"
LINK="#000000" VLINK="#808080" ALINK="#000000">
<DIV ID="div1" CLASS="time" STYLE="position:relative;top:25px;left:25px;
height:100px;width:100;background-color:yellow;"></DIV>
<t:ANIMATEMOTION ID="a1" targetElement="div1" to="250,0" dur="3"
autoReverse="true" repeatCount="indefinite"/>
<SPAN id="s1" style="position:relative;top:40px;">segmentTimeToSimpleTime:</SPAN>
<BR>
<SPAN id="s2" style="position:relative;top:40px;">simpleTime:</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 method is a Microsoft extension to Synchronized Multimedia Integration Language (SMIL) Non-Microsoft link.

Applies To

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

更多语法参考

introduction to html+time, segmenttime, simpleTime