»ö»óÀ̳ª t:ANIMATECOLOR¿¡ ÀÇÇØ ¾Ö´Ï¸ÞÀ̼ǵǴ »ö»óÀÇ ½ÃÀÛ°ªÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

Àμö
: (¼Ó¼º ¹®ÀÚ¿­)

¼Ó¼º°ªÀº »ö»óÀ̳ª animateColor¿¡ ÀÇÇØ ¾Ö´Ï¸ÞÀ̼ǵǴ »ö»óÀÇ ½ÃÀÛ°ªÀ» ³ªÅ¸³»´Â ¹®ÀÚ¿­ÀÌ´Ù.

»ö»ó°ªÀº rrggbb »ö»óÀ̳ª »ö»ó¸íÀ̾î¾ß ÇÑ´Ù.

ÀÌ ¼Ó¼º°ªÀº ¿ø·¡ÀÇ ¾ÖÆ®¸®ºäÆ®³ª ¼Ó¼º°ªÀ» °»½ÅÇÑ´Ù.

ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.

Ư±â

from °ªÀÌ ÁöÁ¤µÇÁö ¾Ê¾ÒÀ¸¸é, ¾Ö´Ï¸ÞÀ̼ÇÀÌ ½ÃÀ۵Ǵ ½ËÁ¡¿¡¼­ÀÇ ¸ñÇ¥ ¾ÖÆ®¸®ºäÆ®ÀÇ °ªÀ» »ç¿ëÇÑ´Ù.

t:ANIMATECOLOR¿¡¼­ À¯È¿ÇÑ ¾ÖÆ®¸®ºäÆ®°ªÀº 16Áø¼ö RGB »ö»ó°ªÀ̳ª »ö»ó°ª Å°¿öµå·Î ¿¹¸¦µé¾î #0000ff ȤÀº blueÀÌ´Ù. Ãß°¡ÀûÀÎ Á¤º¸´Â »ö»óÇ¥¸¦ ÂüÁ¶Ç϶ó.

È°¼º ÁßÀÎ ¾Ö´Ï¸ÞÀ̼ǿ¡¼­ ¼Ó¼ºµéÀ» ½ºÆ®¸³Æ®¸¦ »ç¿ëÇÏ¿© ź·ÂÀûÀ¸·Î º¯°æ½ÃÅ°·Á¸é, Á¦ÀÛÀÚ´Â ¸î°¡Áö ÁÖÀÇÇÏ¿©¾Æ ÇÑ´Ù. È°¼º ¾Ö´Ï¸ÞÀ̼ÇÀÇ ¼Ó¼º°ªµéÀ» º¯°æÇÏ¿© ¹ß»ý ÇÒ ¼ö ÀÖ´Â ½ÃµµÇÏÁö ¾ÊÀº °á°ú¸¦ ÇÇÇϱâ À§ÇÏ¿©, ¾Ö´Ï¸ÞÀ̼ÇÀ» beginElement ¸Þ¼­µå¸¦ »ç¿ëÇÏ¿© ´Ù½Ã ½ÃÀÛÇÑ´Ù. ¿¹¸¦µé¸é

<SCRIPT>
object.endElement();
object.from='#7FFFD4';
object.beginElement();
</SCRIPT>

animate, t:ANIMATEMOTION°ú t:ANIMATECOLOR °³Ã¼¿¡¼­, HTML time2 ºñÇìÀ̹ö´Â ´ÙÀ½°ú °°Àº ¾Ö´Ï¸ÞÀÌ¼Ç Æò°¡ ¸ðµå¸¦ »ç¿ëÇÑ´Ù.

Àû¿ë
°³Ã¼scriptHTML±Ô°ÝIE
ÂüÁ¶
HTML+time begin by clacMode dur fill from targetElement to values »ö»óÇ¥

t:ANIMATECOLORÀÇ from, ¼Ó¼º ¿¹Á¦

¿ÜºÎ DIV


³»ºÎ DIV

°á°ú Ç¥½Ãâ

µÎ°³ÀÇ t:ANIMATECOLOR ¿¤·¹¸àÆ®°¡ °¢°¢ div ¿¤·¹¸àÆ®ÀÇ backgroundColor¸¦ º¯°æ½ÃÅ°¸ç, ³»ºÎ DIVÀº ¹è°æ»öÀÌ ¿¬ÃÊ·Ï¿¡¼­ ³ë¶ûÀ¸·Î, DIV ¿ÜºÎ Àº ³ë¶û¿¡¼­ ¿¬ÃÊ·ÏÀ¸·Î ¾Ö´Ï¸ÞÀ̼ǵȴÙ.

<HTML xmlns:t="urn:schemas-microsoft-com:time">
<HEAD>
<STYLE>.time {behavior: url(#default#time2);}</STYLE>
<IMPORT namespace="t" implementation="#default#time2">
<SCRIPT>
function showAll(obj){
  objid=obj.id;
  str=objid+'.attributeName='+obj.attributeName+'<BR>';
  str+=objid+'.from='+obj.from+'<BR>';
  str+=objid+'.to='+obj.to+'<BR>';
  str+=objid+'.targetElement='+obj.targetElement+'<BR>';
  str+=objid+'.begin='+obj.begin+'<BR>';
  str+=objid+'.dur='+obj.dur+'<BR>';
  str+=objid+'.fill='+obj.fill+'<BR>';
  str+=objid+'.calcMode='+obj.calcMode+'<BR>';
  if (objid=='ac1Obj') str+='outerDIV.style.backgroundColor='+outerDIV.style.backgroundColor+'<BR>';
  else str+='innerDIV.style.backgroundColor='+innerDIV.style.backgroundColor+'<BR>';
  showA.innerHTML=str;
}
</SCRIPT>
</HEAD>
<BODY>
<T:PAR id="parObj" begin="0" dur="15" fill="hold">
<T:ANIMATECOLOR id="ac1Obj" attributeName="background-color" from="yellow" to="lightgreen"
  targetElement="outerDIV" begin="0" dur="5" fill="hold"/>
<DIV id="outerDIV" class="time"
  style="font-size:18;left:100;border:solid 3 red;position:absolute;width:400;height:200;
    background-color:red;text-align:center;padding:9">¿ÜºÎ DIV</DIV><BR><BR>

<T:ANIMATECOLOR id="ac2Obj" attributeName="background-color" from="lightgreen" to="yellow"
  targetElement="innerDIV" begin="0" dur="5" fill="hold"/>
</T:PAR>
<DIV id="innerDIV" class="time"
  style="font-size:18;left:150;border:dotted 3 blue;position:absolute;width:300;height:100;
    background-color:blue;text-align:center;padding:9">³»ºÎ DIV</DIV>
<P style=margin-top:190></P>
<BUTTON onclick="parObj.beginElement()">´Ù½Ã ½ÃÀÛ</BUTTON>
<BUTTON onclick="showAll(ac1Obj)">¿ÜºÎ ³»¿ë º¸±â</BUTTON>
<BUTTON onclick="showAll(ac2Obj)">³»ºÎ ³»¿ë º¸±â</BUTTON>
<DIV id=showA>°á°ú Ç¥½Ãâ</DIV>
</BODY>
</HTML>