[ 2 posts ]

mycsd

  • Joined: Tue Mar 02, 2010 2:57 pm
  • Posts: 2
  • Offline
  • Profile

ColorAnim and BackgroundColor

Post Posted: Tue Mar 02, 2010 3:07 pm
+0-
So, I want to animate the backgroundcolor of a TR element from "#FFFF9C" to "whatever it was before".

When I provide just the "to" attribute the animation doesn't happen. However, when I provide both a "to" and "from" attribute it works. However, my problem is that I want to know what the value of the TR's backgroundcolor is before I do the animation so that way I can set the "to" attribute to this value.

If it helps I'm using 2.6.0

mycsd

  • Joined: Tue Mar 02, 2010 2:57 pm
  • Posts: 2
  • Offline
  • Profile

Re: ColorAnim and BackgroundColor

Post Posted: Wed Mar 03, 2010 10:00 am
+0-
Never mind. I ended up using:

YAHOO.util.Dom.getStyle(el, 'backgroundColor');
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum