ÁöÁ¤µÈ ½Ã°£¿¡ ½Ã°£ ¿¤·¹¸àÆ®¸¦ ½ÃÀÛÇÑ´Ù.
¹Ýȯ°ªÀº ¾ø´Ù.
¸ðüÀÇ ½Ã°£ÀÌ ÁöÁ¤µÈ ½Ã°£¿¡ µµ´ÞÇϱâ Àü¿¡ beginElementAt ¸Þ¼µå°¡ ÀÛµ¿µÇ¸é beginElementAt ¸Þ¼µå·Î ÁöÁ¤ÇÑ ½Ã°£¿¡ ¿¤·¹¸àÆ®°¡ ½ÃÀ۵ȴÙ.
±×·¸Áö ¾Ê´Ù¸é ¿¤·¹¸àÆ® ½Ã°£Àº Áï½Ã ½ÃÀ۵ȴÙ.
beginElementAt ¸Þ¼µå°¡ ÀÌÀü °ª°ú °°°Å³ª º¸´Ù ÀûÀº °ªÀ¸·Î ÇѹøÀÌ»ó ¿¤·¹¸àÆ® ½Ã°£¿¡¼ ÀÛµ¿µÇ¸é, ¹«½ÃµÈ´Ù.
| °³Ã¼ | script | IE |
|---|
ÀÌ ¸Þ¼µå´Â (¿µ¹®)SMIL 2.0(Synchronized Multimedia Integration Language)¿¡¼ Á¤ÀǵǾú´Ù.
beginElementAt ¸Þ¼µå·Î ÁöÁ¤µÈ ½Ã°£¿¡ ¿¤·¹¸àÆ®¸¦ ½ÃÀÛÇÑ´Ù.
<HTML xmlns:t ="urn:schemas-microsoft-com:time">
<STYLE>.time{ behavior: url(#default#time2);font-size:16pt;}</STYLE>
<SCRIPT>
function doBegin(){
if ((secondToStart.value<=document.body.currTimeState.activeTime)|(secondToStart.value==null)){
showA.innerText='¹®¼ ŸÀ̸Ӻ¸´Ù Å« Á¤¼ö¸¦ ÀÔ·ÂÇÏ¿©¾ß ÇÑ´Ù.';
secondToStart.value='';
secondToStart.focus();
return;
} else showA.innerText='';
t1.beginElementAt(secondToStart.value);
}
</SCRIPT>
¹®¼ ŸÀ̸Ó:<SPAN id="Timer" class="time" dur=".01" repeatCount="indefinite" fill="hold"
onrepeat="innerText=parseInt(document.body.currTimeState.activeTime);">0</SPAN><BR>
½Ã°£¿ë±â ŸÀ̸Ó:<SPAN id="Timer" class="time" dur=".01" repeatCount="indefinite" fill="hold"
onrepeat="innerText=parseInt(t1.currTimeState.activeTime);">0</SPAN><BR><BR>
<T:excl id="t1" begin="0" class="time" dur="27">
<DIV id="s1" class="time" style="Color:Red; " begin="1" DUR="5">ù° °³Ã¼ 5Ãʰ£ º¸ÀÓ</DIV>
<DIV id="s2" class="time" style="Color:Green;" begin="6" DUR="5">µÑ° °³Ã¼ 5Ãʰ£ º¸ÀÓ</DIV>
<DIV id="s3" class="time" style="Color:Blue;" begin="11" DUR="5">¼¼Â° °³Ã¼ 5Ãʰ£ º¸ÀÓ</DIV>
<DIV id="s4" class="time" style="Color:Orange;" begin="16" DUR="5">³×° °³Ã¼ 5Ãʰ£ º¸ÀÓ</DIV>
<DIV id="s5" class="time" style="Color:Purple;" begin="21" DUR="5">¸¶Áö¸· °³Ã¼ 5Ãʰ£ º¸ÀÓ</DIV>
</T:excl>
»õ·Î ½ÃÀÛÇÒ ½Ã°£À» ÀÔ·Â <INPUT type="number" name="secondToStart" size="3" /><SPAN style=width:2em></SPAN>
<BUTTON id="b1" onclick="doBegin()">È®ÀÎ</BUTTON>
<DIV id=showA> </DIV>