PHP Cookie (expand collapse)
Posted: Sat Jun 25, 2011 11:03 pm
I'm using modules in the site I'm building, and allowing them to be either expanded to collapsed to save space. What's a good way to have this happen, collapse the module, change the collapse icon to the expand icon, and store a cookie to keep the module collapsed until the user manually expands it?
To see what I'm talking about, here is a link to a dummy design, with the modules on the right which do nothing right now. http://www.kalebklein.com/projects/SYS/
Code: Select all
<div id="modules">
<div id="members" class="mod">
<div class="module">
<div class="moduleTop">
<div class="moduleTitle">Members Area</div><div class="collapse"></div>
</div>
<div class="moduleContent">This is the module's Content</div>
</div>
</div>
<div id="june" class="mod">
<div class="module">
<div class="moduleTop">
<div class="moduleTitle">June</div><div class="collapse"></div>
</div>
<div class="moduleContent">This is the module's Content</div>
</div>
</div>
</div>
</div>