Location: PHPKode > projects > Supercart > Supercart/template/blocks/lists/expand.php
<script type="text/javascript">
function ExpandCollapse(id) {
  if (document.getElementById) {
    Block = document.getElementById(id);
	if (Block.currentStyle.display == "none" || Block.currentStyle.display == null || Block.currentStyle.display == "") {
	  Block.style.display = "block";
	}
	else if (Block.currentStyle.display == "block") {
	  Block.style.display = "none";
	}
	else {
	  Block.style.display = "block";
	}
  }
}
</script>
<h2 align="center">%%TITLE%%</h2>
<!-- BEGIN BLOCKLIST -->
<h3>%%ITEMTITLE%%</h3>
<!-- BEGIN BLOCKITEM --><p><strong><a href="#" onclick="javascript:ExpandCollapse('item%%ITEMID%%'); return false;">%%ITEMSMALLTEXT%%</a></strong><div id="item%%ITEMID%%" style="display: none"><br />%%ITEMBIGTEXT%%</div></p><!-- END BLOCKITEM -->
<!-- END BLOCKLIST -->
Return current item: Supercart