not sure I get it, but is it like this?
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
<script type="text/javascript">
function toggleSpecific(elementid, buttid) {
var node = document.getElementById(elementid);
if(node.style.display == 'block') {
node.style.display='none';
document.getElementById(buttid).src="http://www.clker.com/cliparts/y/P/U/j/3/e/power-button-on-green-background-th.png"
}
else {
node.style.display = 'block';
document.getElementById(buttid).src="http://www.clker.com/cliparts/h/F/b/D/p/V/power-on-button-th.png"
}
}
</script>
</head>
<body>
<div class="why">
<div class="button"><a href="javascript:toggleSpecific('hide1','mybutt1');" title="Hide1"><img id="mybutt1" src="http://www.clker.com/cliparts/y/P/U/j/3/e/power-button-on-green-background-th.png" alt="Expand/Collapse" width="25" height="24" border="0" /></a>Button Title Here</div>
<div id="hide1" style="margin:0px 11px 0px 11px; display: none;">
<p class="subhead_01">Subhead</p>
<p>This is a paragraph.</p>
</div>
</div>
<div class="why">
<div class="button"><a href="javascript:toggleSpecific('hide2','mybutt2');" title="Hide2"><img id="mybutt2" src="http://www.clker.com/cliparts/y/P/U/j/3/e/power-button-on-green-background-th.png" alt="Expand/Collapse" width="25" height="24" border="0" /></a>Button Title Here</div>
<div id="hide2" style="margin:0px 11px 0px 11px; display: none;">
<p class="subhead_01">Subhead</p>
<p>This is a paragraph.</p>
</div>
</div>
<div class="why">
<div class="button"><a href="javascript:toggleSpecific('hide3','mybutt3');" title="Hide3"><img id="mybutt3" src="http://www.clker.com/cliparts/y/P/U/j/3/e/power-button-on-green-background-th.png" alt="Expand/Collapse" width="25" height="24" border="0" /></a>Button Title Here</div>
<div id="hide3" style="margin:0px 11px 0px 11px; display: none;">
<p class="subhead_01">Subhead</p>
<p>This is a paragraph.</p>
</div>
</div>
<div class="why">
<div class="button"><a href="javascript:toggleSpecific('hide4','mybutt4');" title="Hide4"><img id="mybutt4" src="http://www.clker.com/cliparts/y/P/U/j/3/e/power-button-on-green-background-th.png" alt="Expand/Collapse" width="25" height="24" border="0" /></a>Button Title Here</div>
<div id="hide4" style="margin:0px 11px 0px 11px; display: none;">
<p class="subhead_01">Subhead</p>
<p>This is a paragraph.</p>
</div>
</div>
</body>
</html>
Bookmarks