开发者

How to make this object.runtimestyle.filter='Gray' for supporting in firefoxbrowser for apply gray scale?

开发者 https://www.devze.com 2023-03-31 04:03 出处:网络
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 mak

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

0

精彩评论

暂无评论...
验证码 换一张
取 消