currTimeState°³Ã¼ activTime, segmentTime, simpleTime, repeatCount ¼Ó¼º ¿¹Á¦
repeatCount=1
simpleTime=0 segmentTime=0 activeTime=0 simpleTimeÀº óÀ½¿¡´Â ÁøÇà¿¡ µû¶ó Áõ°¡ÇÏ°í ¿ª¹æÇâÀ¸·Î À̵¿ÇÒ ¶§´Â °¨¼ÒÇÑ´Ù. ÇÑ »çÀÌƲÀÌ ¿Ï·áµÇ¸é repeatCount´Â Áõ°¡ÇÑ´Ù. <HTML xmlns:t ="urn:schemas-microsoft-com:time"> <HEAD> <STYLE>.time{behavior: url(#default#time2);} </STYLE> <IMPORT namespace="t" implementation="#default#time2"> <SCRIPT> window.onload = fnOnLoad; function fnOnLoad(){ window.setInterval(fnUpdateTimes, 100); } function fnUpdateTimes(){ oSimpleTime.innerHTML=oAnim.currTimeState.simpleTime; oSegmentTime.innerHTML=oAnim.currTimeState.segmentTime; oActiveTime.innerHTML=oAnim.currTimeState.activeTime; } function fnRepeat(){ oRepeatCount.innerHTML=oAnim.currTimeState.repeatCount+1; } </SCRIPT> </HEAD> <BODY> <T:ANIMATEMOTION id="oAnim" targetElement="oDIV" to="400,100" dur="2" autoReverse="true" repeatCount="5" onrepeat="fnRepeat()" fill="freeze"/> <DIV id="oDiv" class="time" style="position:absolute;left:350;top:30;width:100;height:100;background-color:blue;"></DIV> <DIV style="font-family:courier;"> repeatCount=<SPAN id="oRepeatCount">1</SPAN><BR> simpleTime=<SPAN id="oSimpleTime">0</SPAN><BR> segmentTime=<SPAN id="oSegmentTime">0</SPAN><BR> activeTime=<SPAN id="oActiveTime">0</SPAN><BR> </DIV> </BODY> </HTML> |