method:Yahoo.util.ColorAnim ( element, attributes, duration, method )
return type:ColorAnim
content:ใช้สร้าง object ColorAnim
example:var attributes = { backgroundColor: { from: rgb( 255, 255, 255 ), to: "#ffffff" } };
var color_anim = new YAHOO.util.ColorAnim ( "bamboo", attributes );
comment:ตัวแปร element คือ id ของ element หรือ dom element ที่ต้องการให้เกิดการกระทำนี้
ตัวแปร attributes คือ คำสั่งของ css ที่กำหนด attribute ได้แก่ to, by, from, units
ตัวแปร duration คือ กำหนดระยะเวลาที่เกิดการกระทำนี้ ( default = 1 )
ตัวแปร method คือ ฟังก์ชันที่จะทำงานในขณะเกิดการกระทำนี้ ( default = Yahoo.util.Easing.easeNone )