So I’ve got a bunch of images that I turned into links, and I want to have them change into a different image upon hovering. How do I go about doing this?
Each image-link is in its own div.
<div id=”work-1″>
<a href=”work-1.html”><img src=”images/work-1.gif” alt=”Work 1″ /></a>
</div>
<div id=”work-2″>
<a href=”work-2.html”><img src=”images/work-2.gif” alt=”Work-2″ /></a>
</div>
I’m also putting the style in an external css file. The only thing I’m making them do for now is just float left.
Check this link. Hope it will help you
http://www.alistapart.com/articles/sprites/
Comment by adnan — December 12, 2009 @ Saturday, December 12, 2009 6:25 pm
Good link…
Read the article but the basic idea is that instead of using an img tag you are switching the background-image of the anchor element when you hover over it.
Comment by joe — December 13, 2009 @ Sunday, December 13, 2009 7:54 pm
Also, don’t forget I posted about this here:
http://understandingnewmedia.com/webpro/2009/11/10/image-sprites/
Comment by joe — December 13, 2009 @ Sunday, December 13, 2009 7:55 pm