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