| getAttribute() | ใช้คืนค่า ค่าข้อมูลปัจจุบัน ของ attribute ที่กำหนด |
|---|
method:getAttribute ( attribute );
return type:number array
content:ใช้คืนค่า ค่าข้อมูลปัจจุบัน ของ attribute ที่กำหนด
example:var attributes = { width: { to: 0 } }; var anim = new YAHOO.util.Anim ( "bamboo", attributes ); anim.animate (); var width = anim.getAttribute ( "width" );