I have two images normal.png
and glow.png
and both are the same size but I don't know what this size is.
A normal image link would look like this:
<a href='http://example.com'>
<img src='normal.png'>
</a>
When hovering over the link, can I make glow.png
appear instead of normal.png
, i.e. like a rollover image?
I found all sorts of CSS solutions for this, using sprites or :hover background images, but they all depend on knowing the image size in advance. That doesn't apply to my situation as my images are dynamic.
I'm using HTML5.