ÁöÁ¤µÈ ½Ã°£¿¡ ¿¤·¹¸àÆ®ÀÇ ½Ã°£À» ÁßÁö½ÃŲ´Ù.

Àμö/ÆĶó¸ÞÅÍ
iSeconds
ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç, ¿¤·¹¸àÆ®ÀÇ ¸ðü ½Ã°£¿¡ µû¸¥ ¿¤·¹¸àÆ® ½Ã°£ÀÌ Áß´ÜµÉ ½ËÁ¡À» ÁöÁ¤ÇÏ´Â ¹®ÀÚ¿­ÀÌ´Ù.
¹Ýȯ°ª

¹Ýȯ°ªÀº ¾ø´Ù.

Ư±â

¸ðü °³Ã¼°¡ ±× ÁöÁ¤µÈ ½Ã°£¿¡ µµ´ÞÇϱâ Àü ¾ðÁ¦³ª endElementAtÀÌ ÀÛ¿ëµÇ¸é, ¿¤·¹¸àÆ®´Â ±× endElementAt ¸Þ¼­µå¿¡ ÀÇÇÏ¿© ÁöÁ¤µÈ ½Ã°£ ½ËÁ¡¿¡¼­ ÁßÁöµÉ °ÍÀÌ´Ù. ¾Æ´Ï¸é ¿¤·¹¸àÆ®´Â ±× Á¾·á ½Ã°£¿¡ µµ´ÞÇÒ ¶§±îÁö °è¼ÓÀûÀ¸·Î Ç÷¹ÀÌµÉ °ÍÀÌ´Ù.

Àû¿ë
°³Ã¼scriptIE
ÂüÁ¶
beginElementAt, endElement, HTML+time

ÀÌ ¸Þ¼­µå´Â (¿µ¹®)SMIL 2.0(Synchronized Multimedia Integration Language)¿¡¼­ Á¤ÀǵǾú´Ù.


¹®¼­ Timer: 0
½Ã°£¿ë±â Timer: 0
div1Àº 4Ãʵ¿¾È µð½ºÇ÷¹À̵ȴÙ.
div2´Â 4Ãʵ¿¾È µð½ºÇ÷¹À̵ȴÙ.
Á¾·áµÉ ½Ã°£ ÀÔ·Â :  
°á°ú Ç¥½Ãâ

endElementAt ¸Þ¼­µå°¡ ¿¤·¹¸àÆ® ½Ã°£À» ÁöÁ¤µÈ ½Ã°£¿¡ ÁßÁö½ÃŲ´Ù.

<HTML xmlns:t="urn:schemas-microsoft-com:time">
<HEAD>
<STYLE>.time { behavior: url(#default#time2) }</STYLE>
<SCRIPT>
function doEnd(){
  if(setEnd.value<=document.body.currTimeState.activeTime||setEnd.value==null||isNaN(setEnd.value)){
    showA.innerHTML='¹®¼­ÀÇ ½Ã°£°ªº¸´Ù Å« Á¤¼öÀ̾î¾ß ÇÑ´Ù.';
  } else {
    timeObj.endElementAt(setEnd.value);
    showA.innerHTML=setEnd.value;
  }
}
</SCRIPT>
<IMPORT namespace="t" implementation="#default#time2">
</HEAD>

<BODY>
¹®¼­ Timer: <SPAN id="bTimer" class="time" dur=".01"  repeatCount="indefinite" fill="hold"
  onrepeat="innerText=parseInt(document.body.currTimeState.activeTime);">0</SPAN><BR>
½Ã°£¿ë±â Timer: <SPAN id="Timer" class="time" dur=".01"  repeatCount="indefinite" fill="hold"
  onrepeat="innerText=parseInt(timeObj.currTimeState.activeTime);">0</SPAN><BR>

<t:EXCL id="timeObj" repeatDur="indefinite">
<DIV id="div1" class="time" begin="0" dur="4" style="border:solid 1 blue">div1Àº 4Ãʵ¿¾È µð½ºÇ÷¹À̵ȴÙ.</DIV>
<DIV id="div2" class="time" begin="4" dur="4" style="border:solid 1 red">div2´Â 4Ãʵ¿¾È µð½ºÇ÷¹À̵ȴÙ.</DIV>
</t:EXCL>

Á¾·áµÉ ½Ã°£ ÀÔ·Â : <INPUT name="setEnd" size="3" />  
<BUTTON id="but1" onclick="doEnd()">È®ÀÎ</BUTTON>
<BUTTON id="but2" onclick="timeObj.beginElement();showA.innerHTML=setEnd.value=''">´Ù½Ã ½ÃÀÛ</BUTTON>
<DIV id=showA>°á°ú Ç¥½Ãâ</DIV>
</BODY>
</HTML>