¹Ýº¹ ·çÇÁ¿¡¼­ ÇöÀçÀÇ ÁøÇàÀ» ¹Ýº¹Çϴ Ƚ¼ö¸¦ ¹ÝȯÇÑ´Ù.

Àμö
: (¼Ó¼º Á¤¼ö°ª)

¼Ó¼º°ªÀº ¹Ýº¹ ·çÇÁ¿¡¼­ ÇöÀçÀÇ ÁøÇàÀ» ¹Ýº¹Çϴ Ƚ¼ö¸¦ ³ªÅ¸³»´Â Á¤¼ö°ªÀÌ´Ù.

ÀÌ ¼Ó¼ºÀº ÀбâÀü¿ëÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.

Ư±â

ÀÌ ¼Ó¼ºÀº ÀбâÀü¿ëÀ¸·Î currTimeState °³Ã¼¿¡ ³ªÅ¸³ª°í ¹Ýº¹ ·çÇÁ¿¡¼­ ·±Å¸ÀÓÀ¸·Î Á¢¼ÓÇÒ ¼ö ÀÖ´Ù.
¹Ýº¹ ·çÇÁ´Â repeatCount ¼Ó¼ºÀ¸·Î ¼³Á¤µÈ °ÍÀÌ´Ù.

Àû¿ë
°³Ã¼scriptHTML±Ô°ÝIE
ÂüÁ¶
HTML+time, repeatDur

ÀÌ ¼Ó¼ºÀº (¿µ¹®)SMIL 2.0(Synchronized Multimedia Integration Language)¿¡ Microsoft°¡ È®ÀåÇÑ °ÍÀÌ´Ù.



ÇöÀçȽ¼ö=1

repeatCount ¼Ó¼ºÀ» »ç¿ëÇÏ¿© ÇöÀçÀÇ ÁøÇàÀ» ¹Ýȯ¹Þ´Â´Ù.

<HTML xmlns:t="urn:schemas-microsoft-com:time">
<HEAD>
<IMPORT namespace="t" implementation="#default#time2">
<STYLE>.time{ behavior: url(#default#time2);}</STYLE>
<SCRIPT>
function showCount(){
  showA.innerText=(aniObj.currTimestate.repeatCount+1);
}
</SCRIPT>
</HEAD>

<BODY>
<DIV id="aniDivObj" class="time" style="position:relative;top:10;left:0; height:50;width:100;background-color:pink;"></DIV>
<t:ANIMATEMOTION id="aniObj" targetElement="aniDivObj" to="150,0" begin="0;indefinite" dur="1"
  autoReverse="true" repeatCount="5" onrepeat="showCount()"/><BR>
<BUTTON id="b1" onclick="showA.innerText='1'; aniObj.beginElement();">´Ù½Ã ½ÃÀÛ</BUTTON>
ÇöÀçȽ¼ö=<SPAN id="showA" style=color:red;font-weight:bold>1</SPAN>
</BODY>
</HTML>