ÁöÁ¤µÈ ½Ã°£¿¡ ¿¤·¹¸àÆ®ÀÇ ½Ã°£À» ÁßÁö½ÃŲ´Ù.
¹Ýȯ°ªÀº ¾ø´Ù.
¸ðü °³Ã¼°¡ ±× ÁöÁ¤µÈ ½Ã°£¿¡ µµ´ÞÇϱâ Àü ¾ðÁ¦³ª endElementAtÀÌ ÀÛ¿ëµÇ¸é, ¿¤·¹¸àÆ®´Â ±× endElementAt ¸Þ¼µå¿¡ ÀÇÇÏ¿© ÁöÁ¤µÈ ½Ã°£ ½ËÁ¡¿¡¼ ÁßÁöµÉ °ÍÀÌ´Ù. ¾Æ´Ï¸é ¿¤·¹¸àÆ®´Â ±× Á¾·á ½Ã°£¿¡ µµ´ÞÇÒ ¶§±îÁö °è¼ÓÀûÀ¸·Î Ç÷¹ÀÌµÉ °ÍÀÌ´Ù.
°³Ã¼ | script | IE |
---|
ÀÌ ¸Þ¼µå´Â (¿µ¹®)SMIL 2.0(Synchronized Multimedia Integration Language)¿¡¼ Á¤ÀǵǾú´Ù.
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>