Jump to content

show/hide div/java


karimali831

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.