How can i show image colored on mouseover?
My questions is similar to this jQuery script i follow for recursively changing images.
- A grayscale image
A colored image
$(document).ready(function () { $("#image").hover(function () { $(this).attr("src", "tpi/colored.jpg"); }, function () { $(this).attr("src", "tpi/grayscale.jpg"); }); });
Now is there any other way in css or jQuery with that i could do this without using two images at a time on hover?