|
Post by Isa The Great on May 25, 2010 12:34:59 GMT -5
Code:
<script type="text/javascript"><!-- function hideShow(it){ (document.getElementById(it).style.display == 'none')? document.getElementById(it).style.display = '' : document.getElementById(it).style.display = 'none'; } //--></script>
Then just use: Code:
<a href="javascript: void(0);" onClick="hideShow('div');"><img src="image url" border="0" /></a><br /> <div id="div" style="display: none;"> Hidden and shown content </div>
Repeat, changing the id in the hideShow('id') and the div id="id" every time.
|
|