Forum Moderators: not2easy

Message Too Old, No Replies

Using the grey filter

         

benj0323

6:17 am on Jul 6, 2005 (gmt 0)

10+ Year Member



I know in IE you can change everything within an element to grey using a filter like this:

progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)

is it possible to do this in mozilla or other browsers than IE?

Thanks for your help.

Robin_reala

6:37 am on Jul 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Nope, it's IE proprietory. If you're just dealing with colours then you could write a RGB->HSL javascript funtion, then go back through the DOM pulling all the 's' values to 0. Colormatch remix [colormixers.com] has some functions that would point you in the right direction for this. Images would still be unaffected of course.