AKiraVos
01-22-2009, 09:38 PM
On a website Im trying to add a clickable image:
<a href=""><img src="img.jpg"/></a>
What Im trying to achieve is that the image is in color. I need a script or something that displays the image desaturated / black & white, and as soon as I mouse-over, it should get its original color. I don't want to use 2 images (one in color, one black & white).
I found the CSS property filter: gray, but it only works in IE. So maybe a javascript to manipulate the image to display it in grayscale / black & white?
<a href=""><img src="img.jpg"/></a>
What Im trying to achieve is that the image is in color. I need a script or something that displays the image desaturated / black & white, and as soon as I mouse-over, it should get its original color. I don't want to use 2 images (one in color, one black & white).
I found the CSS property filter: gray, but it only works in IE. So maybe a javascript to manipulate the image to display it in grayscale / black & white?