I am try for object.runtimestyle.filter='Gray'
f开发者_运维知识库or gray scale and object.runtimestyle.filter='Invert'
for invert color. These things are working fine in IE, but firefox. Can u make it by using javascript.
I found an interesting article here: http://james.padolsey.com/javascript/grayscaling-in-non-ie-browsers/
With Demo Source here: http://james.padolsey.com/demos/grayscale/grayscale.js/view/
Assuming that you're asking about images, I recommend using the Pixastic JavaScript library.
Desaturate can make an image grayscale, and Invert can.. invert it.
check this library and you can try it out with some examples in their lab, also another good example here
精彩评论