Jump to content

Recommended Posts

Hi,

 

I'm looking for a show/hide script for my php page.

I tried some but didn't work, this is how I want it:

 

    $teamstats.= '
    
        <tr> 
          <td bgcolor="'.$bg1.'" valign="top" rowspan="7">Matches:<br> // TOGGLE - SHOW-HIDE</td>
          <td align="left" bgcolor="'.$bg1.'"><img src="images/cup/icons/add_result.gif" width="16" height="16" alt="" /> Total Matches: <a href="?site=matches&action=viewmatches&clanID='.$ds['ID'].'">'.$totaltotalusermatches.'</a></td>
        </tr>

//CONTENT TO SHOW/HIDE

        <tr>
          <td align="left" bgcolor="'.$bg2.'"><img src="images/cup/icons/add_result.gif" width="16" height="16" alt="" /> Open Matches: <a href="?site=matches&action=viewmatches&clanID='.$ds['ID'].'">'.$openmatches.'</a></td>
        </tr>
        <tr> 
          <td align="left" bgcolor="'.$bg1.'"><img src="images/success.png" width="16" height="16" alt="" /> Matches Won: <a href="?site=matches&action=viewmatches&clanID='.$ds['ID'].'">'.$matcheswon.'</a></td>
        </tr>
        <tr> 
          <td align="left" bgcolor="'.$bg2.'"><img src="images/error.png" width="16" height="16" alt="" /> Matches Lost: <a href="?site=matches&action=viewmatches&clanID='.$ds['ID'].'">'.$matcheslost.'</a></td>
        </tr>
        <tr> 
          <td align="left" bgcolor="'.$bg2.'"><img src="images/icons/online.gif" width="16" height="16" alt="" /> Confirmed Matches: <a href="?site=matches&action=viewmatches&clanID='.$ds['ID'].'">'.$confirmedmatches.'</a></td>
        </tr>
        <tr> 
          <td align="left" bgcolor="'.$bg1.'"><img src="images/cup/icons/pending.gif" width="16" height="16" alt="" /> Pending Matches: <a href="?site=matches&action=viewmatches&clanID='.$ds['ID'].'">'.$pendingmatches.'</a></td>
        </tr>
        <tr> 
          <td align="left" bgcolor="'.$bg2.'"><img src="images/cup/icons/opened_protest.gif" width="16" height="16" alt="" /> Match Protests: <a href="?site=matches&action=viewmatches&clanID='.$ds['ID'].'">'.$matchprotests.'</a></td>
        </tr>'; 

 

anyone can help please?

Link to comment
https://forums.phpfreaks.com/topic/208483-showhide-divjava/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.