2
This theme was inspired by the one @ gaining-mass, but is only available with a paid subscription to
MyXoops Club.
The close right/left panel tabs are easily implemented in any theme - easier still if you use Dreamweaver MX 2004 to edit your themes (see DW Extension
here).
Or see code snippet below:
<!-- Insert this in the head of your theme -->
<script type="text/javascript">
var getById = (typeof document.getElementById != "undefined");
<!--
function toggleDisplay(obj,display1,display2){
if(!getById) return;
obj = getRef(obj);
if(obj.style.display == display2)
obj.style.display = display1;
else
obj.style.display = display2;
repaintFix();
}
function getRef(obj){
if(getById)
return(typeof obj == "string") ? document.getElementById(obj) : obj;
}
function repaintFix(obj){
if("undefined" == typeof document.body
|| "undefined" == typeof document.body.style) return;
if(obj == null)
obj == document.body;
else obj = getRef(obj);
document.body.style.visibility = "hidden";
document.body.style.visibility = "visible";
}
//-->
</script>
<!-- Use something like this to use the function -->
<img src="<{$xoops_url}>/images/subject/icon1.gif" alt="Close Panel To Expand Main Contents" class="pointer" onClick="toggleDisplay('left','block','none')" />
<{if $xoops_showrblock == 1}><img src="<{$xoops_url}>/images/subject/icon1.gif" alt="Collapse or expand right panel" class="pointer" onClick="toggleDisplay('right','block','none')" /><{/if}><{if $xoops_showrblock == 0}><img src="<{$xoops_url}>/images/icons/no_posticon.gif" alt="No right blocks to toggle" /><{/if}>
If you need additional help with these codes, see
this FAQ question.
Hope this helps ;)
www.myxoops.com - MyXoops Is Your XOOPS!