I want to initially cover up an image with a white background div overtop the image. After the user clicks on a button, a part of the overlaying div will be removed to show part of the image underneath.
So if the image was divided into four, when one of the buttons was clicked, it would remove the z-index for a specific set of coordinates pertaining to that id in the jQuery. I just don't know how to do that using a css style.
Here is the basic outline:
<div id="buttons">
<ul>
<li id="0">button0</li>
<li id="1">button1</li>
<li id="2">button2</li>
<li id="3">button3</li>
</ul>
</div>
<div id="image">
<div id="overlay"></div>
<div id="reveal">
<img src="http://science.nasa.gov/media/medialibrary/2010/03/31/sn_remnant_n63a.jpg/image_thumb" height="128" width="128"/>
</div>
</div>
<style>
#image{
width: 128px;
height: 128px;
position: relative;
}
#overlay{
width:128px;
height:128px;
background-color:white;
z-index: 10;
position: absolute;
}
</style>