So all I want to do is a simple image swap when the user hovers over a button, but I just can't get it to work.
I have images (buttons) that are separate div id's but all in the .rollover class. Each button has text on it; each text has its own div id and is not part of the same element as the image. My setup is thus:
<div class="rollover"><a href="#"><img src="button.jpg" id="img1"></a></div>
<div class="rollover"><a href="#"><img src="button.jpg" id="img2"></a></div>
and so on.
I just want to swap button.jpg for button2.jpg when hovering. I've tried to follow CSS rollover buttons with the exception that my text is not included as a <span> in the div, I've changed the image dimensions to match mine, and obviously changed the name of the image file in background-image. My code is otherwise exactly the same.
Halp?
I have images (buttons) that are separate div id's but all in the .rollover class. Each button has text on it; each text has its own div id and is not part of the same element as the image. My setup is thus:
<div class="rollover"><a href="#"><img src="button.jpg" id="img1"></a></div>
<div class="rollover"><a href="#"><img src="button.jpg" id="img2"></a></div>
and so on.
I just want to swap button.jpg for button2.jpg when hovering. I've tried to follow CSS rollover buttons with the exception that my text is not included as a <span> in the div, I've changed the image dimensions to match mine, and obviously changed the name of the image file in background-image. My code is otherwise exactly the same.
Halp?