A
Anonymous
Guest
I had a script on the Expand and Contract.
This is for mouseover but how can I change it to onmouseclick? So that when I click, it expand, when I click again it contract.
Anyone could help me out?
Code:
<div style="height: 10px; width: 160px; overflow: hidden;" onmouseover="this.style.height='auto'; return false;" onmouseout="this.style.height='10px'; return false;" align="left">
<span class="gensmall"><a href="#">Expand/Contract stats...</a></span><br /><br />PUT WHAT EVER EXPAND HERE</span></div>
This is for mouseover but how can I change it to onmouseclick? So that when I click, it expand, when I click again it contract.
Anyone could help me out?