Previous Message
Next Message

Make a disabled image gray.

Sent by Gilad Fitoussi on 27 September 2005 12:12


 
I need to have images to be gray when the image is disabled. The way to it was by setting
filter:gray(). 
The problem is that in any way I try doing it (for IE) it doesn’t work:
1. Using expression:
<style>img { filter:expression( eval("this.disabled? 'gray':''") ); }</style>
<img id="gray1" disabled src='../icons/folder.gif'>
<img id="b" src='../icons/folder.gif'>
 
2. Using behavior:
if (element.disabled && element.style.filter=="") {
            element.style.filter = "gray()";  
}
 
How can it be done?
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Possibly related: