views:

85

answers:

2

hi all,

i made a button widget in jQuery which displays an icon. now when i set the button do disabled, i'd like to have it greyed-out. is there a jQery function to do this?

thx

+2  A: 

http://www.alistapart.com/articles/sprites2/

Sprites are your answer.

Chris
+3  A: 

If you don't want to create another version of the image then you can try using CSS to reduce the opacity of the button so it appears faded, or overlay a semi-transparent grey DIV to give a greyed-out effect.

cxfx
as it's icons in my case i prefer this quick solution :)
Fuxi