Invert Image Color Onmouseover

梦想的初衷 提交于 2019-12-08 10:47:39

问题


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.

I am building my first website...so I am not really good at Javascript codes.

Can someone suggest the coding? Thank you!

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.


回答1:


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.



来源:https://stackoverflow.com/questions/5735722/invert-image-color-onmouseover

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!