I've got this code on my site, which I found on sitepoint..
function MinMax(id,n,x){
obj=document.getElementById(id);
if (obj.offsetHeight<x){
obj.style.height=x+'px';
}
else {
obj.style.height=n+'px';
}
}
And then on the page I have..
<a onclick="MinMax('Aff',0,80);">
<img src='link/here'>
</a>
<div id='Aff'>
content
</div>
You see.. on my site I have a maximize and minimize button on each div.. or I'm hoping to. But I want it so that if a member minimizes a div, and then leaves and comes back later, the div is still minimized. Could someone help me? Oh and I have no Javascript experience whatsoever.. so it would be nice if you could just give me the code..
Thanks in advance..
Edited by chaoslight, 23 September 2006 - 07:59 AM.
