Invert Image Color Onmouseover

2019-06-14 03:51发布

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条回答
我想做一个坏孩纸
2楼-- · 2019-06-14 04:36

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.

查看更多
登录 后发表回答