Actually, you need (because of css issues with IE prior to IE 8 or it might be prior to 7) a link to do a css rollover. And the image must be a child of that link. However, you don't need a link to do a javascript image rollover. An image may have its own onmouseover and onmouseout events, ex:
Code:
<img src="color_1.jpg" alt="" onmouseover="this.src = 'B_W_1.jpg';"
onmouseout="this.src = 'color_1.jpg';">
In fact, if you have a link somewhere else on the page that you want to do the same thing to that image:
Code:
<img id="image_1" src="color_1.jpg" alt="" onmouseover="this.src = 'B_W_1.jpg';"
onmouseout="this.src = 'color_1.jpg';">
And elsewhere:
Code:
<a href="whatever.htm" onmouseover="document.getElementById('image_1').src = 'B_W_1.jpg';"
onmouseout="document.getElementById('image_1').src = 'color_1.jpg';">Link Text</a>
Bookmarks