I think your problem is you are loading the image as an image. If you fixed the width and height of the container element "projectImage" and displayed your image-01.jpg as it's background, you could then make a empty anchor styled to be the same size, which only shows the image on a mouseover.
The CSS:
Code:
.projectImage, .projectImage a {
display:block;
width:470px;
height:295px;
padding:0px;
margin:0px;
border:none;
text-decoration:none;
}
.projectImage {
background:url(/print-design/image-01.jpg) top left no-repeat;
}
.projectImage a:hover {
background:url(/print-design/mouse_over.png) center no-repeat;
}
The HTML
Code:
<div id="projectImage"><a href=""> </a></div>
That should do what you want... I'd suggest at that size using a small transparent .png or .gif as the mouseover if all you want it to do is add the 'click here' text which is why I set it to centered. If you are going to do more than just the text over the image, set it to "top left" just like the other image. (this also means your mouseover image doesn't have to be the same dimensions, allowing for smaller size and pageload times)
Oh and the space is there 'just to be sure' the anchor gets rendered in all browsers.
Javascript? Who needs javascript?
Bookmarks