<a href="http://site.com/somepage.html" onMouseOver="img1.src='images/im2.gif'" onMouseOut="img1.src='images/im1.gif'">текст ссылки </a> <img src="images/im1.gif" width="50" height="50" alt="" border="0" name="img1" />