°³Ã¼ÀÇ ¸ðü ½Ã°£ÀÇ ½Ã°£°ªÀ» ¹®¼ÀÇ È°¼º½Ã°£À¸·Î ȯ»êÇÏ¿© ¹ÝȯÇÑ´Ù.
¹Ýȯ°ª iTimeÀº parentTime¿¡ ÇØ´çÇÏ´Â ¹®¼ÀÇ °ªÀ» ³ªÅ¸³»´Â Á¤¼ö°ªÀÌ´Ù.
°³Ã¼ | script | IE |
---|
ÀÌ ¸Þ¼µå´Â (¿µ¹®)SMIL 2.0(Synchronized Multimedia Integration Language)¿¡ ´ëÇÑ MicrosoftÀÇ È®ÀåÀÌ´Ù.
parentTimeToActiveTime ¸Þ¼µå¸¦ »ç¿ëÇÏ¿© parentTime¿¡ ÇØ´çÇÏ´Â ¹®¼ÀÇ È°¼º ½Ã°£ °ªÀ» µð½ºÇ÷¹ÀÌÇÑ´Ù.
<HTML xmlns:t="urn:schemas-microsoft-com:time"> <HEAD> <TITLE>parentTimeToDocumentTime Method</TITLE> <IMPORT namespace="t" implementation="#default#time2"> <STYLE> .time{ behavior: url(#default#time2);}</STYLE> <SCRIPT> function doShow(itime){ showA.innerHTML='È°¼º ½Ã°£¿¡¼ÀÇ À§Ä¡´Â <B style=color:red>'+div1.parentTimeToDocumentTime(itime)+'</B>ÀÌ´Ù.'; } </SCRIPT> </HEAD> <BODY> <T:par id="t1" class="time" repeatCount="3"> <DIV id="div1" class="time" begin="2s" dur="2s" style="color:blue;font-size:20pt">DIV1 ½ÃÀÛµÊ!</DIV> </T:par> <INPUT id=inObj value="1" size="3" onchange="butObj.innerText='parentTimeToActiveTime('+this.value+')'"> <BUTTON id=butObj onclick="doShow(inObj.value)">parentTimeToActiveTime(1)</BUTTON> <DIV id=showA>°á°ú Ç¥½Ãâ</DIV> </BODY> </HTML>