Hello Sam,

Ankit method will works great. But you can also manipulate the Style object 
directly via Element.getStyle().setProperty("backgroundColor",  "#FF00FF"); 
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/dom/client/Style.html#setProperty%28java.lang.String,%20java.lang.String%29

If you need to have the transition between the two background color animate I 
can give you some pointer

On Jul 26, 2011, at 10:35 PM, sanjay kanwar wrote:

> Hi There,
> 
> I have two Css background color and i want to show one color at a time when a 
> certain kind of condition fulfill. Confused how to proceeed. any help or 
> example (sample) would be great.
> Thx in Advance
> 
> -- 
> Regards
> Sam
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to