TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 606
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 382
  • Total: 383
  • @rjen

Show/Hide Link Code For The Right and Left Panels

Started by sudeeraj, October 18, 2007, 04:43:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sudeeraj

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>


This website is proudly hosted on Crocweb Cloud Website Hosting.