grayscaling images and refering the original image back.
Posted
by
dilip
on Stack Overflow
See other posts from Stack Overflow
or by dilip
Published on 2011-01-15T05:55:46Z
Indexed on
2011/01/15
6:53 UTC
Read the original article
Hit count: 200
JavaScript
|jquery-ui
I know how to grayscale an image. I am using jquery accordion and I have images on every accordion header. I want to change the image to grayscale when the accordion is active and change the image back to its original form when the accordion is not active. I am using the event accordionChange. The problem is that I am not able to save the original image. Please help. Also after grayscaling I tried to give the original src directly as
document.getElementById("imgId").src = "images/pic.jpg";
This is not working.
© Stack Overflow or respective owner