animateColorÀÇ attributeName, begin, by, clacMode, dur, fill, targetElement ¼Ó¼º ¿¹Á¦

outerDIV
innerDIV

acObj.currTimeState.simpleTime=0

°á°ú Ç¥½Ãâ

t:ANIMATECOLOR ¿¤·¹¸àÆ®¸¦ »ç¿ëÇÏ¿© DIV ¿¤·¹¸àÆ®ÀÇ backgroundColor¸¦ ¾Ö´Ï¸ÞÀÌ¼Ç ÇÑ´Ù.
¿ÜºÎ DIV ¿¤·¹¸àÆ®´Â backgroundColor°¡ #ff0000(red)¿¡¼­ acObj(t:ANIMATECOLOR) ¿¤·¹¸àÆ®°¡ 5Ãʵ¿¾È¿¡ Â÷ÀÌ°ª by ¼Ó¼º°ª #ffff00(yellow)·Î º¯È¯ÇÑ´Ù.
by ¾ÖÆ®¸®ºäÆ®°¡ Ãß°ÅÀû(additive)À̹ǷÎ, outerDIVÀÇ backgroundColor´Â ¾Ö´Ï¸ÞÀ̼ǵǴ µ¿¾È¿¡ Á¡ÁøÀûÀ¸·Î #ffff00(yellow)¿Í #ff0000(red)°¡ ÇÕ»ê °è»êµÇ°í #ffff00(yellow)¿¡ µµ´ÞµÇ¸é ¾Ö´Ï¸ÞÀ̼ÇÀÌ Á¾·áµÈ´Ù.
³»ºÎ DIV ¿¤·¹¸àÆ®´Â backgroundColor°¡ pinkÀ¸·Î °íÁ¤µÈ´Ù.

<HTML xmlns:t="urn:schemas-microsoft-com:time">
<HEAD>
<STYLE>.time {behavior: url(#default#time2);position:relative;font-size:18;font-weight:bold;text-align:left;padding:5}</STYLE>
<IMPORT namespace="t" implementation="#default#time2">
<SCRIPT>
function showAll(){
  str='acObj.attributeName='+acObj.attributeName+'<BR>';
  str+='acObj.by='+acObj.by+'<BR>';
  str+='acObj.targetElement='+acObj.targetElement+'<BR>';
  str+='acObj.begin='+acObj.begin+'<BR>';
  str+='acObj.dur='+acObj.dur+'<BR>';
  str+='acObj.fill='+acObj.fill+'<BR>';
  str+='acObj.calcMode='+acObj.calcMode+'<BR>';
  str+='innerDIV.style.backgroundColor='+innerDIV.style.backgroundColor+'<BR>';
  showA.innerHTML=str;
}
</SCRIPT>
</HEAD>
<BODY>
<T:PAR id="parObj" dur="15" fill="hold">
<T:ANIMATECOLOR id="acObj" targetElement="outerDIV" attributeName="background-color" by="#ffff00" begin="1" dur="5" fill="hold"/>
</T:PAR>

<DIV id="outerDIV" class="time" style=";top:0;left:0;width:500;height:200;background-color:#ff0000;border:solid 2 blue">outerDIV</DIV>
<DIV id="innerDIV" class="time" style="top:-150;left:150;width:200;height:100;background-color:pink;border:solid 2 red;">innerDIV</DIV>
<DIV style="position:relative;top:-100;">
<P>acObj.currTimeState.simpleTime=<SPAN class="time" dur=".1" repeatCount="indefinite"
  onrepeat="innerHTML=acObj.currTimeState.simpleTime" style="font-weight:normal">0</SPAN></P>
<BUTTON onclick="parObj.beginElement()">´Ù½Ã ½ÃÀÛ</BUTTON>
<BUTTON onclick="showAll()">³»¿ë º¸±â</BUTTON>
<DIV id="showA">°á°ú Ç¥½Ãâ</DIV>
</DIV>
</BODY>
</HTML>