¿¤·¹¸àÆ®ÀÇ ¼¼±×¸àÆ® ½Ã°£À» ÇØ´ç ¿¤·¹¸àÆ®ÀÌ È°¼º½Ã°£À¸·Î ȯ»êÇÏ¿© Á¤¼ö°ªÀ» ¹ÝȯÇÑ´Ù.
¹Ýȯ°ª iActiveTimeÀº ¿¤·¹¸àÆ®ÀÇ ¼¼±×¸àÆ® ½Ã°£ segmentTime¿¡ ÇØ´çÇÏ´Â ¿¤·¹¸àÆ®ÀÌ È°¼º½Ã°£À» ³ªÅ¸³»´Â Á¤¼ö°ªÀÌ´Ù.
°³Ã¼ | script | IE |
---|
ÀÌ ¸Þ¼µå´Â (¿µ¹®)SMIL 2.0(Synchronized Multimedia Integration Language)¿¡ ´ëÇÑ MicrosoftÀÇ È®ÀåÀÌ´Ù.
segmentTimeToActiveTime ¸Þ¼µå·Î ÇØ´ç ¼¼±×¸àÆ® ½Ã°£°ú ¿¤·¹¸àÆ®ÀÇ È°¼º½Ã°£À» ºñ±³ÇÑ´Ù.
<HTML xmlns:t="urn:schemas-microsoft-com:time"> <HEAD> <IMPORT namespace="t" implementation="#default#time2"> <STYLE>.time{behavior: url(#default#time2);}</STYLE> <SCRIPT> window.onload = timer; function timer(){ window.setInterval(fnUpdateTimes,100); } function fnUpdateTimes(){ s1.innerHTML = a1.segmentTimeToActiveTime(div1.currTimeState.activeTime); s2.innerHTML = a1.currTimeState.simpleTime; s3.innerHTML = a1.currTimeState.activeTime; s4.innerHTML = a1.currTimeState.segmentTime; } </SCRIPT> </HEAD> <BODY> <DIV id="div1" class="time" style="position:relative;top:25px;left:25px;height:100px;width:100;background-color:aqua;"></DIV> <T:animatemotion id="a1" targetElement="div1" to="250,0" dur="3" autoReverse="true"/><BR><BR> segmentTimeToActiveTime = <SPAN id="s1"></SPAN><BR> simpleTime = <SPAN id="s2"></SPAN><BR> activeTime = <SPAN id="s3"></SPAN><BR> segmentTime = <SPAN id="s4"></SPAN><BR> </BODY> </HTML>