animateColorÀÇ attributeName, begin, by, clacMode, dur, fill, targetElement ¼Ó¼º ¿¹Á¦outerDIV
innerDIV
acObj.currTimeState.simpleTime=0 °á°ú Ç¥½Ãâ
t:ANIMATECOLOR ¿¤·¹¸àÆ®¸¦ »ç¿ëÇÏ¿© DIV ¿¤·¹¸àÆ®ÀÇ backgroundColor¸¦ ¾Ö´Ï¸ÞÀÌ¼Ç ÇÑ´Ù. <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> |