시간(HTML+time timeline)에 관한 정보를 포함한 개체이다.
elemObject.currTimeState.propertyName
- 인수
-
- currTimeState : (개체)
- 개체는 적용되는 엘레멘트들의 자식 개체이다.
- propertyName : (속성)
- 개체에 적용되는 속성들 중 하나이다.
- 특기
-
시간 img 개체의 id 값을 이용하여 repeatCount 속성에 접속할 수 있다.
iVal=imgObj.currTimeState.repeatCount;
- 적용
-
개체 | script | HTML | 규격 | IE |
t: t:animate | [oVal]=animate.currTimeState | 없음 | 없음 | IE5.5(win32) |
t: t:animateColor | [oVal]=animateColor.currTimeState | 없음 | 없음 | IE5.5(win32) |
t: t:animateMotion | [oVal]=animateMotion.currTimeState | 없음 | 없음 | IE5.5(win32) |
t: t:audio | [oVal]=audio.currTimeState | 없음 | 없음 | IE5.5(win32) |
t: t:img | [oVal]=img.currTimeState | 없음 | 없음 | IE5.5(win32) |
t: t:media | [oVal]=media.currTimeState | 없음 | 없음 | IE5.5(win32) |
t: t:par | [oVal]=par.currTimeState | 없음 | 없음 | IE5.5(win32) |
t: t:ref | [oVal]=ref.currTimeState | 없음 | 없음 | IE5.5(win32) |
t: t:seq | [oVal]=seq.currTimeState | 없음 | 없음 | IE5.5(win32) |
t: t:set | [oVal]=set.currTimeState | 없음 | 없음 | IE5.5(win32) |
t: t:time2 | [oVal]=time2.currTimeState | 없음 | 없음 | IE5.5(win32) |
t: t:transitionFilter | [oVal]=transitionFilter.currTimeState | 없음 | 없음 | IE6(win32) |
t: t:video | [oVal]=video.currTimeState | 없음 | 없음 | IE5.5(win32) |
- 참조
- HTML+time
이 개체는 (영문) SMIL 2.0(Synchronized Multimedia Integration Language)에 확장한 것이다.
currTimeState 설명을 위한 예제
이동 개체
결과 표시창
|
<import namespace="t" implementation="#default#time2">
<div id="divObj" style="position:absolute;top:980;left:50;width:100;height:30;border:solid black 1;text-align:center;">이동 개체</div>
<t:animate id="aObj" targetelement="divObj" attributename="left" to="700" dur="3" fill="hold" repeatcount="indefinite" speed=".5" autoreverse="true">
<script>
oObj=aObj.currTimeState;
function showCount(){
swCount.innerText='activeTime='+oObj.activeTime.toFixed(3)+' progress='+oObj.progress.toFixed(3);
self.setTimeout('showCount()',50)
}
</script>
<div id="swCount">결과 표시창</div>
<button onclick="aObj.beginElement();showCount()">새로 시작 클릭</button></t:animate></import> |
예제의 t:ANIMATE 엘레멘트는 div 개체를 이동시킨다.
로딩이 완료된 후 하여 속성값들을 확인하라.
결과 표시창
activeDur 속성
IE
⇒ 시간 개체의 총 지속 시간을 나타내는 문자열이나 시간을 초단위로 반환한다.
문법: [sVal=]currTimeStateObj.activeDur
코드: document.write(oObj.activeDur);
결과:
activeTime 속성
IE
⇒ 시간 개체의 현재의 활성 시간을 나타내는 값을 초단위로 반환한다. 반복과 역방향(reverse)도 포함된다.
문법: [iVal=]currTimeStateObj.activeTime
코드: document.write(oObj.activeTime);
결과:
isActive 속성
IE
⇒ 시간 개체가 현재의 활성 중인가를 부울값으로 반환한다.
문법: [bVal=]currTimeStateObj.isActive
코드: document.write(oObj.isActive);
결과:
isMuted 속성
IE
⇒ 시간 개체 오디오 개체가 현재 mute되었는가를 부울값으로 반환한다.
문법: [bVal=]currTimeStateObj.isMuted
코드: document.write(oObj.isMuted);
결과:
isOn 속성
IE
⇒ 시간 개체가 현재 활성화되었거나 시간흐름 속애 있는가를 부울값으로 반환한다.
문법: [bVal=]currTimeStateObj.isOn
코드: document.write(oObj.isOn);
결과:
isPaused 속성
IE
⇒ 시간 개체가 현재 일시중지되었나를 부울값으로 반환한다.
문법: [bVal=]currTimeStateObj.isPaused
코드: document.write(oObj.isPaused);
결과:
parentTimeBegin 속성
IE
⇒ 시간 개체의 모체 시간이 시작되는 시간값으로 반환한다.
문법: [sVal=]currTimeStateObj.parentTimeBegin
코드: document.write(oObj.parentTimeBegin);
결과:
parentTimeEnd 속성
IE
⇒ 시간 개체의 모체 시간이 종료되는 시간값으로 반환한다.
문법: [sVal=]currTimeStateObj.parentTimeEnd
코드: document.write(oObj.parentTimeEnd);
결과:
progress 속성
IE
⇒ 시간 개체의 현재 진행 상태를 시간값으로 반환한다.
문법: [sVal=]currTimeStateObj.progress
코드: document.write(oObj.progress);
결과:
repeatCount 속성
IE (
<t:ELEMENT repeatCount=sVal> 애트리뷰트)
⇒ 시간 개체의 루프 반복 횟수를 나타내는 문자열이나 횟수 정수를 반환한다.
문법: [sVal=]currTimeStateObj.repeatCount
코드: document.write(oObj.repeatCount);
결과:
segmentDur 속성
IE
⇒ 시간 개체의 지속시간을 반복을 포함(
autoReverse)하여 초단위로 반환한다.
문법: [sVal=]currTimeStateObj.segmentDur
코드: document.write(oObj.segmentDur);
결과:
segmentTime 속성
IE
⇒ 시간 개체의 지속시간 중 현재 시간을 초단위로 반환한다.
문법: [sVal=]currTimeStateObj.segmentTime
코드: document.write(oObj.segmentTime);
결과:
simpleDur 속성
IE
⇒ 시간 개체의 반복 지속시간을 나타내는 문자열이나 초단위 부동소수로 반환한다.
문법: [fVal=]currTimeStateObj.simpleDur
코드: document.write(oObj.simpleDur);
결과:
simpleTime 속성
IE
⇒ 시간 개체의 지속시간(
dur) 중 현재의 시간을 나타내는 시간값을 반환한다.
문법: [iVal=]currTimeStateObj.simpleTime
코드: document.write(oObj.simpleTime);
결과:
speed 속성
IE (
<t:ELEMENT speed=fVal> 애트리뷰트)
⇒ 시간 개체의 모체 시간용기의 카스케이딩 속도 효과를 반영한 플레이 속도를 나타내는 부동소수 시간값을 반환한다.
문법: [fVal=]currTimeStateObj.speed
코드: document.write(oObj.speed);
결과:
state 속성
IE
⇒ 시간 개체의 현재의 상태를 나타내는 수치값을 반환한다.
문법: [iVal=]currTimeStateObj.state
코드: document.write(oObj.state);
결과:
stateString 속성
IE
⇒ 시간 개체의 현재의 상태를 나타내는 문자열을 반환한다.
문법: [sVal=]currTimeStateObj.stateString
코드: document.write(oObj.stateString);
결과:
volume 속성
IE (
<t:ELEMENT volume=iVal> 애트리뷰트)
⇒ 시간 개체의 플레이될 때의 볼륨을 나타내는 수치값을 반환한다.
문법: [iVal=]currTimeStateObj.volume
코드: document.write(oObj.volume);
결과:
최종 수정: 05/03/2025 08:57:04 |  All right reserved | 비정상적인 방식으로 프레임없이 페이지에 접속하면 자주 오류가 발생됩니다. 오류가 나면 정상적 접속으로 시도해 보세요. | http://koxo.com/lang/js/object/currTimeState.html |