I am looking for some easy jquery solution for hover images.
Like if i define a class. them jquery should get the current image like
abc.png then chnage that to abc_on.png
and then put that to on hover image
How can i do that.
i don’t want to add function for every button.
Just one function and it do all.
My Images all usually imagename.png or imagename_on.png
I haven’t had a chance to try it, but it should work, as long as .png does not show up in the filename elsewhere.
Edit:
A solution that is a little more expensive using regular expressions: