¾Ö´Ï¸ÞÀ̼ÇÀÇ Á¾·á°ªÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¼Ó¼º°ªÀº ¾Ö´Ï¸ÞÀ̼ÇÀÇ Á¾·á°ªÀ» ³ªÅ¸³»´Â ¹®ÀÚ¿ÀÌ´Ù.
ÀÌ °ª¿¡´Â px, in, cm, mm, pt, pcµîÀÇ ´ÜÀ§ ÁöÁ¤ÀÚ¸¦ Æ÷ÇÔÇÒ ¼ö ÀÖ´Ù.
Áö¿øµÇ´Â ´ÜÀ§´Â CSS ´ÜÀ§ ÂüÁ¶¸¦ ÂüÁ¶Ç϶ó.
ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.
by ¼Ó¼ºÀº µ¿ÀÏÇÑ ¿¤·¹¸àÆ®¿¡¼ to ¼Ó¼º°ú µ¿½Ã¿¡ »ç¿ëµÉ ¼ö ¾ø´Ù.
µÎ°ªÀÌ ¸ðµÎ ¼³Á¤µÇ¾úÀ¸¸é by ¼Ó¼º°ªÀÌ ¹«½ÃµÈ´Ù.
È°¼º ÁßÀÎ ¾Ö´Ï¸ÞÀ̼ǿ¡¼ ¼Ó¼ºµéÀ» ½ºÆ®¸³Æ®¸¦ »ç¿ëÇÏ¿© ź·ÂÀûÀ¸·Î º¯°æ½ÃÅ°·Á¸é, Á¦ÀÛÀÚ´Â ¸î°¡Áö ÁÖÀÇÇÏ¿©¾Æ ÇÑ´Ù. È°¼º ¾Ö´Ï¸ÞÀ̼ÇÀÇ ¼Ó¼º°ªµéÀ» º¯°æÇÏ¿© ¹ß»ý ÇÒ ¼ö ÀÖ´Â ½ÃµµÇÏÁö ¾ÊÀº °á°ú¸¦ ÇÇÇϱâ À§ÇÏ¿©, ¾Ö´Ï¸ÞÀ̼ÇÀ» beginElement ¸Þ¼µå¸¦ »ç¿ëÇÏ¿© ´Ù½Ã ½ÃÀÛÇÑ´Ù. ¿¹¸¦µé¸é
<SCRIPT> object.endElement(); object.to='400'; object.beginElement(); </SCRIPT>
animate, animateMotion°ú animateColor °³Ã¼´Â HTML time2 ºñÇìÀ̹ö¸¦ »ç¿ëÇÏ°í ´ÙÀ½ÀÇ ¸ðµ¨¿¡ ÀÇÇÏ¿© ¾Ö´Ï¸ÞÀÌ¼Ç ¼Ó¼ºµéÀ» Æò°¡ÇÑ´Ù.
<SCRIPT> object.endElement(); object.path=null; object.to='400'; object.beginElement(); </SCRIPT>
°³Ã¼ | 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 showAll(){ str='aniObj.from='+aniObj.from+'<BR>'; str+='aniObj.to='+aniObj.to+'<BR>'; str+='aniObj.repeatCount='+aniObj.repeatCount+'<BR>'; showA.innerHTML=str; } </SCRIPT> </HEAD> <BODY> <T:ANIMATE id="aniObj" onbegin="showAll()" repeatCount="3" autoReverse="true" targetElement="mvObj" attributeName="left" from="0" to="300" dur="5" fill="hold"/> <DIV id="mvObj" class="time" style="position:relative;top:0;left:0;padding:9;font-size:20pt;background-color:pink;color:red">À̵¿ °³Ã¼</DIV> <BUTTON onclick="aniObj.beginElement();showAll()">´Ù½Ã ½ÃÀÛ</BUTTON> <DIV id=showA>°á°ú Ç¥½Ãâ</DIV> </BODY> </HTML>