| setAttribute() | ใช้กำหนดค่าให้กับ attribute |
|---|
method:setAttribute ( attribute, value, unit )
return type:void
content:ใช้กำหนดค่าให้กับ attribute
example:var attributes = { width: { to: 0 } }; var anim = new YAHOO.util.Anim ( "bamboo", attributes ); anim.setAttribute ( width, { to: 100 }, "px" );