Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    need help with show/hide

    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

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Read this http://www.codingforums.com/showthread.php?t=82672
    particularly the last part.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •