反转图像颜色Onmouseover [英] Invert Image Color Onmouseover
问题描述
当鼠标使用Javascript翻转图片时,我想反转图片的颜色。我不想使用图片滚动,因为它会增加加载时间。
I want to invert the colors of an image when the mouse rolls over the image using Javascript. I do not want to use Image Rollover as it will increase the load time.
我正在建立我的第一个网站...所以我不是真的好的Javascript代码。
I am building my first website...so I am not really good at Javascript codes.
有人可以建议编码吗?谢谢!
Can someone suggest the coding? Thank you!
我的印象是,使用Javascript程序将使网站加载速度比使用CSS sprite的图像...这种方法在这里更快案件?
Point is ...我的网站已经有很多图片...所以我真的很关心加载时间。
I was under the impression that using a Javascript program will make the website to load faster than using images with CSS sprite...which method is faster in this case? Point is...my site already has a lot of images...so I am really concerned about the load time.
推荐答案
Soh Tanaka有一个伟大的教程。你需要使用你的想象力这一点,因为它比你想象的更复杂。
Soh Tanaka has a great tutorial for this. You need to use your imagination for this one a little because its more complex than you might think.
这篇关于反转图像颜色Onmouseover的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!