3
Here is a simple way to fold anything as my whole site is now blocks and themes....
You make a Java code at the top like so....
<script type="text/javascript">
function showorhide(id) {
if (document.getElementById(id).style.display == "none") {
document.getElementById(id).style.display = "block";
} else {
document.getElementById(id).style.display = "none";
}
}
script>
Now all you have to do is set anything with....
style="display: none;"
With what ever it is that need shrinking or folding... wham bamm
folding menu or div that it is contained as nearly everything can have its own style displaying it as none!!
So if clicked with an a link or using this....
<button onclick="showorhide('Use ID of item');" style="color: White; background-color: #2887B6;">. can be dot or namebutton>
Used the Button as an example as you can make anything like a single file as we have in our GO module...
![](https://xoops.org/uploads/smil42e7a3d4c7b9f.gif)
Would implement it my self, yet unsure, on what or how to get invovled in XOOPS