Hello guys,
For my mobile web Application I wanted my icon (it runs the search commands), to display another image when I click on it so users know when it has registered the touch.

I saw this on the net but didn't try it.

<img src=" URL_IMG-1 " onmouseover="images/search.png' URL_IMG-2 '" onmouseout="images/searchrollover.png' URL_IMG-1 '"  /></a>
Would this work or is there another html solution ?