¾Ö´Ï¸ÞÀ̼ÇÀÌ ´©ÀûÀûÀΰ¡¸¦ ³ªÅ¸³»´Â °ªÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¼Ó¼º°ªÀº ¾Ö´Ï¸ÞÀ̼ÇÀÌ ´©ÀûÀûÀΰ¡¸¦ ³ªÅ¸³»´Â ¹®ÀÚ¿ÀÌ´Ù.
none | µðÆúÆ®À̸ç, ¾Ö´Ï¸ÞÀ̼ÇÀÌ ´©ÀûÀûÀÌ ¾Æ´Ï´Ù. |
sum | ÇÑ µð½ºÇ÷¹ÀÌ ´ÙÀ½¿¡ µð½ºÇ÷¹ÀÌ°¡ Ãß°¡ÀûÀ¸·Î µÇ¾î ¾Ö´Ï¸ÞÀ̼ÇÀÌ ´©ÀûÀûÀÌ´Ù. |
ÀÌ ¼Ó¼ºÀº Àбâ/¾²±â·Î µðÆúÆ®°ªÀº noneÀÌ´Ù.
ÀÌ ¼Ó¼ºÀº ¸ñÇ¥ ¾ÖÆ®¸®ºäÆ® °ªÀÌ ´©ÀûÀ» Çã¿ëÇÏÁö ¾Ê°Å³ª repeatCount ¼Ó¼º°ªÀÌ ¾øÀ¸¸é ¹«½ÃµÈ´Ù. ¶ÇÇÑ ´©Àû ¾Ö´Ï¸ÞÀ̼ÇÀÌ to ¾ÖÆ®¸®ºäÆ®¸¦ »ç¿ëÇÏ¿© Á¤ÀǵÇÁö ¾Ê¾Æµµ ¹«½ÃµÈ´Ù.
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
ÀÌ ¼Ó¼ºÀº (¿µ¹®)SMIL 2.0(Synchronized Multimedia Integration Language)¿¡¼ Á¤ÀǵǾú´Ù.
<HTML xmlns:t="urn:schemas-microsoft-com:time"> <HEAD> <IMPORT namespace="t" implementation="#default#time2"> <STYLE>.time{ behavior: url(#default#time2);}</STYLE> <SCRIPT> function beginNone(){ count.innerText='1'; aniObj.accumulate=accumulate1.innerText='none'; aniObj.beginElement(); showW.innerText=showH.innerText=''; } function beginSum(){ count.innerText='1'; aniObj.accumulate=accumulate1.innerText='sum'; aniObj.beginElement(); showW.innerText=showH.innerText=''; } function displayDimension(){ if(aniObj.accumulate=='sum'){ showH.innerText='³ôÀÌ:'+divObj.style.height; showW.innerHTML='ÃÑ ³Êºñ:550px=('+divObj.style.width+'+('+aniObj.by+'*'+aniObj.repeatCount+'))<HR width=550>'; }else{ showH.innerText='³ôÀÌ:'+divObj.style.height; showW.innerHTML='ÃÑ ³Êºñ:250px=('+divObj.style.width+'+'+aniObj.by+')<HR width=250>'; } } </SCRIPT> </HEAD> <BODY> <T:ANIMATE id="aniObj" targetElement="divObj" attributeName="width" by="150" dur="3" repeatCount="3" begin="indefinite" onend="displayDimension();" onrepeat="count.innerText=aniObj.currTimeState.repeatCount+1" fill="freeze" /> <DIV id="divObj" style="position:ralative;top:0;left:0;height:50;width:100;padding:9; background-color:yellow;text-align:center;font-size:20;border:solid 2 blue;">È®Àå DIV</DIV> accumulate=<SPAN id="accumulate1" style=color:blue></SPAN><BR> Ƚ¼ö : <SPAN id="count" style=color:blue>1</SPAN><BR> <SPAN id="showH"></SPAN> <SPAN id="showW"></SPAN> <P> <BUTTON onclick="beginNone()"><B>accumulate</B>=none</BUTTON> <BUTTON onclick="beginSum()"><B>accumulate</B>=sum</BUTTON></P> </BODY> </HTML>