TinyPortal
Development => Support => Topic started by: sudeeraj on October 18, 2007, 04:43:23 PM
Show/Hide Link Code For The Right and Left Panels
Thanx for MrApples for the coding which i got for reference
http://www.tinyportal.net/index.php?topic=16964.0
Place This code in center panel for best use..
----------------------------------
<script id=clientEventHandlersJS language=javascript>
function RightButton_onclick()
{
if (document.getElementById("rightbarHeader").style.display=='none')
{document.getElementById("rightbarHeader").style.display = 'block';}
else
{document.getElementById("rightbarHeader").style.display = 'none';}
}
function LeftButton_onclick()
{
if (document.getElementById("leftbarHeader").style.display=='none')
{document.getElementById("leftbarHeader").style.display = 'block';}
else
{document.getElementById("leftbarHeader").style.display = 'none';}
}
</script>
<div align="center">
<table width="500">
<tr>
<td>
<h3>
<a onclick=LeftButton_onclick()>| Show/Hide Left Panel |</a>
</h3>
</td>
<td>
<h3>
<a onclick=RightButton_onclick()>| Show/Hide Right Panel |</a>
</h3>
</td>
</tr>
</table>
</div>