Is there a way to turn a text hyperlink into an image when hovered over?
I've seen image rollovers, but I'm not sure how to code a text-to-image rollover.
I'm unsure where to start and which programming language to use—JavaScript, PHP, or jQuery?
I began with this code snippet:
<a href="#" onmouseover="(document.img.src)='SAM_2251.jpg';">Mouseover here</a>
<img name="img" alt="" border="0" />
However, this code displays the text along with the loaded image. I want the text to disappear completely once the image loads.
Any assistance would be greatly appreciated. Thank you!