HTML 문서에서 모든 시간 엘레멘트들의 컬렉션을 찹조한다.


Script
[cVal]=object.timeAll
[oVal]=object.timeAll(index)
인수
object : (개체)
필수적인 요소이고 timeAll 컬렉션을 포함하는 모체 개체이다.

cVal : (컬렉션)
값은 선택적인 요소이고 timeAll 컬렉션을 나타내는 개체이다.

oVal : (개체)
값은 선택적인 요소이고 timeAll 컬렉션의 한개의 엘레멘트 개체이다.

index : (정수)
값은 필수적인 요소이고 timeAll 컬렉션의 인수로 한개의 엘레멘트 개체를 참조할수 있고 배열변수의 규칙에따라 0부터 시작하고 제일 마지막 인수는 길이보다 1 작다.

특기

timeAll 컬렉션은 적용되는 용기 개체의 직접적인 자식인 모든 시간 개체들을 포함한다.
문서의 모든 시간 엘레멘트를 접속하려면 BODY 엘레멘트에서 timeAll 컬렉션을 적용하면 된다.

적용
개체scriptHTML규격IE
body[cVal]=bodyObj.timeAll없음없음 
t:excl[cVal]=exclObj.timeAll없음없음 
t:par[cVal]=parObj.timeAll없음없음 
t:par[cVal]=seqObj.timeAll없음없음 
참조
HTML+time2 activeElements timeAll timeChildren

이 컬렉션은 (영문) SMIL 2.0(Synchronized Multimedia Integration Language)에 확장한 것이다.


collection
timeAll
timeAll
속성메서드
이전페이지로페이지 맨위로페이지 맨아래로

timeAll 설명을 위한 예제

이동 개체
   
<import namespace="t" implementation="#default#time2"> <div id="divObj" style="position:absolute;top:800;left:50;width:100;height:30;border:solid black 1;text-align:center;">이동 개체</div> <t:animate id="o1Obj" targetelement="divObj" attributename="left" to="700" dur="9" repeatcount="2" fill="hold"> <span id="Clock1">&nbsp;</span> &nbsp; <button onclick="o1Obj.beginElement();clock1()">다시 시작</button> <script> oObj=document.body.timeAll; function clock1(){ Clock1.innerText=o1Obj.currTimeState.activeTime.toFixed(3); setTimeout('clock1()',10); } </script> </t:animate></import>

예제의 t:ANIMATE 엘레멘트는 div 개체를 이동시킨다.


collection
timeAll
timeAll
메서드견본
이전페이지로페이지 맨위로페이지 맨아래로
length 속성 IE
⇒ 컬렉션의 길이를 반환하거나 지정한다.
문법: [iVal=]object.timeAll.length
코드: document.write(oObj.length); 결과:

collection
timeAll
timeAll
속성견본
이전페이지로페이지 맨위로페이지 맨아래로
item 메서드 IE
⇒ 인덱스로 timeAll 등 컬렉션의 한개의 개체를 반환한다.
문법: [oVal=]object.timeAll.item('iVal')
코드: document.write(document.body.timeAll.item(0)) 결과:
코드: document.write(oObj.item(0).nodeName+' | '+oObj.item(0).dur) 결과:
collection
timeAll
속성메서드견본
이전페이지로페이지 맨위로
최종 수정:
05/21/2025 19:46:45
KoXo Homepage
All right reserved
비정상적인 방식으로 프레임없이 페이지에 접속하면 자주 오류가 발생됩니다.
오류가 나면 정상적 접속으로 시도해 보세요.
http://koxo.com/lang/js/object/timeAll.html