What you will want to do is use css layers. This won't work in all browsers but you can read about it here .
Then add this code to the head of the page
HTML Code:
<script language="javascript">
<!--
var state = 'none';
function showhide(layer_ref) {
if (state == 'block') {
state = 'none';
}
else {
state = 'block';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].display = state;
}
if (document.getElementById &&!document.all) {
hza = document.getElementById(layer_ref);
hza.style.display = state;
}
}
//-->
</script>
Then the link code will be
HTML Code:
<a href="#" onclick="showhide('div1');">show or hide</a>
then for each image to hide or show add
HTML Code:
<div id="div1" style="display: none;"> Image goes here </div>
You can position each image with CSS layers. The only problem is that all images will be loaded when the page loads. So with more than a couple options it will take forever to load.
Bookmarks