Changing image on hover with CSS/HTML

Another option is to use JS:

<img src="https://stackoverflow.com/questions/18813299/LibraryTransparent.png" onmouseover="this.src="LibraryHoverTrans.png";" onmouseout="this.src="https://stackoverflow.com/questions/18813299/LibraryTransparent.png";" />

Leave a Comment