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
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 &&"") {
   = "gray()";  
How can it be done?
css-discuss [EMAIL-REMOVED]]
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Possibly related: