I had originally posted this in the Javascript forum but thought a CSS guru may be able to help.
Basically I have a thumbnail viewer and when a thumbnail is mouseover the larger image appears in a <div id="container></div>.....This is simple enough and works fine.
Now within this <div id="container"></div> the script unloads the enlarged image and loads a new one on mouseover which is where I am having trouble.
I am trying to overlay 1 of 3 transparent images over this container to alter a specific part of the image. Is there anyway I can do this in CSS so that the overlay doesn't unload if a new thumbnail is selected ?
Here is what I have tried.....
CSS CODE
Code:
#container {
background-image: url('images/image.jpg');
position: relative;
width: 400px;
height: 363px;
top: 0;
left:0;
z-index; 10;
}
#container img.1 {
position: absolute;
width: 400px;
height: 363px;
top: 0;
left:0;
z-index; 11;
}
And <div> tag area
Code:
<div id="container">
<img src="images/transparent.gif" class="1">
</div>
Now this works on the initial image but will not work on a mouseovered image. It also unloads if I have it on the initial image and then mouseover a thumbnail.
Any tips ?
Last edited by atlantic : 05-08-2007 at 02:24 PM.
|