°³Ã¼¿¡ ÁöÁ¤µÈ ÇÁ·¹ÀÓÀ» À§Ä¡½ÃŲ´Ù.
¹Ýȯ°ªÀº ¾ø´Ù.
ÇöÀç È°¼ºÈ°¡ µÇÁö ¾ÊÀº °³Ã¼¿¡¼ seekToFrame ¸Þ¼µå·Î ã±â(seek)¸¦ ½ÃµµÇÏ¸é ¿À·ù°¡ ¹ß»ýµÈ´Ù. À̸¦ ¹æÁöÇϱâ À§ÇÏ¿© isActive ¼Ó¼ºÀ» »ç¿ëÇÏ¿© °³Ã¼ÀÇ »óŸ¦ Á¡°ËÇÑ´Ù.
¸ðµç ¸Þµð¾î ŸÀÔ¿¡¼ ½Ã°£ ã±â°¡ Áö¿øµÇ´Â °ÍÀº ¾Æ´Ï°í, Ç÷¹À̾ ½Ã°£ ã±â¸¦ Áö¿øÇÏÁö ¸øÇϸé ÀÌ ¸Þ¼µå´Â ¹«½ÃµÈ´Ù.
°³Ã¼ | script | IE |
---|
¿À·ù¸¦ ¹æÁöÇϱâ À§ÇÏ¿© ¸ÕÀú ¸Þµð¾î°¡ È°¼ºÈ ¾ÈµÇ¾úÀ¸¸é beginElement ¸Þ¼µå·Î È°¼ºÈ ½ÃŲ ÈÄ À¯È¿ÇÑ ½Ã°£ ¹üÀ§ ³»¿¡¼ seekToFrame ¸Þ¼µå¸¦ È£ÃâÇÏ¿© ¿øÇÏ´Â ÇÁ·¹ÀÓÀ» ã¾Æ Ç÷¹ÀÌÇÑ´Ù.
<HTML xmlns:t= "urn:schemas-microsoft-com:time"> <HEAD> <IMPORT namespace="t" implementation="#default#time2"> <STYLE>.time{behavior:url(#default#time2)}</STYLE> <SCRIPT> function doSeekToFrame(){ showA.innerHTML=''; if (!oMedia.currTimeState.isActive){ // ¸Þµð¾î °³Ã¼°¡ È°¼º ÁßÀÌ ¾Æ´Ï¸é ´Ù½Ã ½ÃÀÛÇÑ´Ù. oMedia.beginElement(); } if (isFinite(inSeekFrame.value) && inSeekFrame.value >= 0 && inSeekFrame.value < 13){ // ÀÔ·ÂÇÑ Ã£´Â ÇÁ·¹ÀÓÀÌ À¯È¿ÇÑ ¹üÀ§Àΰ¡¸¦ Á¡°ËÇÏ¿© ã´Â´Ù.(ÃÖ´ë 12 ÇÁ·¹ÀÓ) oMedia.seekToFrame(inSeekFrame.value); oMedia.pauseElement(); } else{ // ¹üÀ§¸¦ ¹þ¾î³µÀ¸¸é ´ÙÀÌ ÀÔ·ÂÀ» ¿äûÇÑ´Ù. showA.innerHTML='À¯È¿ ¹üÀ§´Â 0ÀÌ»ó ¸Þµð¾î ÇÁ·¹ÀÓ(12) ÀÌÇÏÀ̾î¾ß ÇÑ´Ù.'; inSeekFrame.value = ''; inSeekFrame.focus(); } } </SCRIPT> </HEAD> <BODY> ¸Þµð¾î ŸÀ̸Ó: <SPAN id="Timer2" class="time" dur=".01" repeatCount="indefinite" fill="hold" onrepeat="innerText=parseInt(oMedia.currTimeState.activeTime);">0</SPAN><BR> <T:video style="width:175px; height:150px;" id="oMedia" src="../../media/clock.avi"/><BR> ÇöÀç ÇÁ·¹ÀÓ #: <SPAN id="oCurrFrame" class="time" dur="0.01" repeatCount="indefinite" fill="hold" onrepeat="innerText=parseInt(oMedia.currentFrame);"></SPAN>/12<BR> ãÀ» ÇÁ·¹ÀÓ(seekToFrame) ÀÔ·Â: <INPUT type="text" value="" name="inSeekFrame" size="4"/><BR> <BUTTON id="seekBtn" onClick="doSeekToFrame();">ÇÁ·¹ÀÓ Ã£±â</BUTTON> <BUTTON onClick="oMedia.resumeElement();showA.innerHTML='°è¼Ó ÁøÇà Áß';">°è¼Ó ÁøÇà</BUTTON> <BUTTON onClick="oMedia.beginElement();showA.innerHTML='';">´Ù½Ã ½ÃÀÛ</BUTTON> <DIV id=showA></DIV> </BODY> </HTML>