...

View Full Version : need help with show/hide



manny
05-02-2006, 12:45 AM
Hi all, got this problem with my site it's made up of left blocks (6 tables) middle content frame and a left block (6 tables). The problem is i have added a phpbb2 board which now if the link is clicked stretches the page and just looks to small if i narrow it down. I need some code to hide all the right blocks when the link is clicked in nav bar or link table, tried various code i found but nothing worked.

i have a java_klappe.js file with some code already that does some other fuctions.

heres my stdfoot.php with the tables that need to be blocked.

<br/>
<? end_frame(); ?>
<td valign="top" width="150" align="right">
<table class="theme_table" width="100%" cellpadding="0" cellspacing="0" border="0" align="right">
<tr valign="top">
<td valign="top" align="center" width="1" style="background-image : url(./themes/ICGstation/images/7px.gif);" /></tr>

<tr>
<td valign="top" height="100%">
<table class="theme_table" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top" width="180">

<!--- block panel start here -->


<?
begin_block("General");?>
<table width="100%" border="0" cellspacing="1" cellpadding="1" class="forumline" align="center">
<tr><td class="row2" align="center" width="100%"><a href=index.php>Home</a></td></tr>
<tr><td class="row1" align="center" width="100%"><a href=rules.php>Rules</a></td></tr>
<tr><td class="row2" align="center" width="100%"><a href=faq.php>FAQ</a></td></tr>
<tr><td class="row1" align="center" width="100%"><a href=phpbb2.php>Forums</a></td></tr>
<tr><td class="row2" align="center" width="100%"><a href=links.php>Links</a></td></tr>
<tr><td class="row1" align="center" width="100%"><a href=chat.php>Chat</a></td></tr>
<tr><td class="row2" align="center" width="100%"><a href=arcade.php>Arcade</a></td></tr>
</table>
<?
end_block();
if (isset($CURUSER[id]))
{
begin_block("Downloads");?>
<table width="100%" border="0" cellspacing="1" cellpadding="1" class="forumline" align="center">
<tr><td class="row2" align="center" width="100%"><a href=browse.php>Browse</a></td></tr>
<tr><td class="row1" align="center" width="100%"><a href=viewrequests.php>Requests</a></td></tr>
<tr><td class="row2" align="center" width="100%"><a href=upload.php>Upload</a></td></tr>
<tr><td class="row1" align="center" width="100%"><a href=mytorrents.php>My Downloads</a></td></tr>
</table>
<?
end_block();
categories_block("Cats");
begin_block("Personal");?>
<table width="100%" border="0" cellspacing="1" cellpadding="1" class="forumline" align="center">
<tr><td class="row2" align="center" width="100%"><a href=my.php>Profile</a></td></tr>
<tr><td class="row1" align="center" width="100%"><a href=messages.php?action=viewmailbox>Private Messages</a></td></tr>
<tr><td class="row2" align="center" width="100%"><a href=friends.php>Friends</a></td></tr>
<tr><td class="row1" align="center" width="100%"><a href=logout.php>Logout</a></td></tr>
</table>
<?
end_block();
begin_block("Infos");?>
<table width="100%" border="0" cellspacing="1" cellpadding="1" class="forumline" align="center">
<tr><td class="row2" align="center" width="100%"><a href=topten.php>Top 10</a></td></tr>
<tr><td class="row1" align="center" width="100%"><a href=staff.php>Staff</a></td></tr>
<tr><td class="row2" align="center" width="100%"><a href=log.php>Log</a></td></tr>
<?
if (get_user_class() >= UC_MODERATOR)
{
echo '<tr><td class="row1" align="center" width="100%"><a href=stats.php>Stats</a></td></tr>';
echo '<tr><td class="row2" align="center" width="100%"><a href=controlpanel.php>Control Panel</a></td></tr>';
}
?>
</table>
<?
end_block();

}
?>
<!--- block panel finish here -->
</td>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br/>

Any help would be appreciated

manny

_Aerospace_Eng_
05-02-2006, 12:53 AM
Read this http://www.codingforums.com/showthread.php?t=82672
particularly the last part.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum