엘레멘트의 시간을 중지시킨다.
![]() | Script | object.endElement() |
파라메터는 없다.
반환값은 없다.
이 메서드는 지역시간의 엘레멘트의 종료(end) 시간에 도달하였거나, 엘레멘트의 지속 시간(dur)이 종료되었을 때와 같은 작용이 적용된다. 모든 자식 시간 엘레멘트들은 통보되 지역시간에 맞게 진행된다.
endElement 메서드는 onend 이벤트를 발생시킨다.
개체 | script | IE |
---|---|---|
animate | animate.endElement() | IE6(win32) |
animateColor | animateColor.endElement() | IE6(win32) |
animateMotion | animateMotion.endElement() | IE6(win32) |
animation | animation.endElement() | IE6(win32) |
audio | audio.endElement() | IE6(win32) |
excl | excl.endElement() | IE6(win32) |
img | img.endElement() | IE6(win32) |
media | media.endElement() | IE6(win32) |
par | par.endElement() | IE6(win32) |
ref | ref.endElement() | IE6(win32) |
seq | seq.endElement() | IE6(win32) |
set | set.endElement() | IE6(win32) |
time2 | time2.endElement() | IE5.5(win32) |
transitionFilter | transitionFilter.endElement() | IE5.5(win32) |
video | video.endElement() | IE6(win32) |
이 메서드는 (영문)SMIL 2.0(Synchronized Multimedia Integration Language)에서 정의되었다.
![]() | endElement 메서드⇒ | ![]() | ![]() ![]() ![]() |
시간 엘레멘트를 endElement 메서드로 종료하고 beginElement 메서드로 시작한다.
<HTML xmlns:t="urn:schemas-microsoft-com:time"> <STYLE>.time { behavior:url(#default#time2) }</STYLE> <IMPORT namespace="t" implementation="#default#time2"> <B>Timer:</B><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="2" style="border:solid 1 blue">div1은 2초동안 디스플레이된다.</DIV> <DIV id="div2" class="time" begin="2" dur="2" style="border:solid 1 red">div2는 2초동안 디스플레이된다.</DIV> </T:excl> <BUTTON id="butEnd" onclick="timeObj.endElement()">시간 종료</BUTTON> <BUTTON id="butBegin" onclick="timeObj.beginElement()">시간 시작</BUTTON>
![]() | endElement 메서드 | ⇒ | ![]() ![]() |
최종 수정: 07/04/2025 03:51:18 | ![]() All right reserved | 비정상적인 방식으로 프레임없이 페이지에 접속하면 자주 오류가 발생됩니다. 오류가 나면 정상적 접속으로 시도해 보세요. | http://koxo.com/lang/js/method/endElement.html |