HTML/PHP/AJAX/JS - Dodatkowa Tabela [Problem]
Karolus_Real - 10-11-2008, 23:54 Temat postu: Dodatkowa Tabela [Problem] Uporałem się z tabelą i wszystko jest ok oprócz jednego :
Kod: | {ROTATE_BANNER_3}
<!-- BEGIN switch_enable_board_msg -->
<div id="hm" style="display: ''; position: relative;">
<table width="100%" class="forumline" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<th class="thCornerL" height="25" nowrap="nowrap">Nasze Serwery</th>
</tr>
<tr>
<td class="row1"><span class="gen"><center>
<table style="width: 100%; background-color: #222222; text-align: center">
<tr>
<td> </td>
<td> <font size=1><b>Nazwa Serwera</b></font></td>
<td> <font size=1><b>IP</b></font></td>
<td> <font size=1><b>Rodzaj</b></font></td>
<td> <font size=1><b>Sloty</b></font></td>
<td> <font size=1><b>Dane Serwera</b></font></td>
</tr>
<tr>
<td> </td>
<td> <font size=2><b><font color=red>EX^Team Server #1 [TP]</font></b></font></td>
<td> <font size=2><b><b><font color=blue>193.33.177.13:27281</font></b></font></td>
<td> <font size=2><font color=red>STEAM</font></font></td>
<td> <font size=2>23</font></td>
<td> <a href="http://www.forum.ex-team.com.pl/viewtopic.php?t=15" target="_blank"><img src="http://i36.tinypic.com/142a6aa.png" border="0" alt="Info"></a></td>
</tr>
</table>
</center></span></td>
</tr>
</table>
</div>
<div id="hm2" style="display: none; position: relative;">
<table width="100%" class="forumline" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<th class="thCornerL" height="25" nowrap="nowrap" onclick="javascript:ShowHide('hm','hm2','hm3');" style="cursor: pointer"> {L_BOARD_MSG} </th>
</tr>
</table>
</div>
<script language="javascript" type="text/javascript">
<!--
if(GetCookie('hm3') == '2') ShowHide('hm', 'hm2', 'hm3');
//-->
</script>
<!-- END switch_enable_board_msg -->
<table width="100%" class="forumline" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<th class="thCornerL" height="25" nowrap="nowrap" onclick="javascript:ShowHide('hm','hm2','hm3');" style="cursor: pointer" title="{L_VHIDE}"> {L_BOARD_MSG} </th>
</tr>
<tr>
<td class="row1"><span class="gen">{BOARD_MSG}</span></td>
</tr>
</table>
</div> |
Tabeli "Nasze Serwery" nie można zwinąć i rozwinąć a więc ok o to mi chodziło, tabelę ogłoszenie można zwinąć i rozwinąć ok ale przy zwijaniu/rozwijaniu tabeli "Ogłoszenie" zwija się też tabela "Nasze Servery"
Chcę aby tabela "Nasze Servery" Nie zwijała się a Tabela "Ogłoszenie" przy zwinięciu ma sama się zwijać, nie zwijając przy tym tabeli "Nasze Serwery"
działanie z tym zwijaniem itd. można sprawdzić na : www.forum.ex-team.com.pl
Proszę o pomoc
Radek - 10-11-2008, 23:59
usuń:
Kod: | <div id="hm" style="display: ''; position: relative;"> | i:
Karolus_Real - 11-11-2008, 00:06
Ok, tabela "Nasze Servery" się nie zamyka ale przy klikaniu na tabele "Ogłoszenie" pojawia się 2x i się nie zamyka bo tekst : "EX^Team Server #1 [TP] Już W Krótce Public!" ciągle jest na wierzchu
Screen :
Radek - 11-11-2008, 00:11
Kod: | <table width="100%" class="forumline" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<th class="thCornerL" height="25" nowrap="nowrap" onclick="javascript:ShowHide('hm','hm2','hm3');" style="cursor: pointer" title="{L_VHIDE}"> {L_BOARD_MSG} </th>
</tr>
<tr>
<td class="row1"><span class="gen">{BOARD_MSG}</span></td>
</tr>
</table>
</div> | przed tym dodaj:
Kod: | <div id="hm2" style="display: ''; position: relative;"> |
Karolus_Real - 11-11-2008, 00:23
@EDIT
Może zrobimy tak mi po woli zaczyna się to wszystko "kićkać"
a więc :
Kod: | {ROTATE_BANNER_3}
<!-- BEGIN switch_enable_board_msg -->
<table width="100%" class="forumline" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<th class="thCornerL" height="25" nowrap="nowrap">Nasze Serwery<onclick="javascript:ShowHide('hm','hm2','hm3');" style="cursor: pointer" </th>
</tr>
<tr>
<td class="row1"><span class="gen"><center>
<table style="width: 100%; background-color: #222222; text-align: center">
<tr>
<td> </td>
<td> <font size=1><b>Nazwa Serwera</b></font></td>
<td> <font size=1><b>IP</b></font></td>
<td> <font size=1><b>Rodzaj</b></font></td>
<td> <font size=1><b>Sloty</b></font></td>
<td> <font size=1><b>Dane Serwera</b></font></td>
</tr>
<tr>
<td> </td>
<td> <font size=2><b><font color=red>EX^Team Server #1 [TP]</font></b></font></td>
<td> <font size=2><b><b><font color=blue>193.33.177.13:27281</font></b></font></td>
<td> <font size=2><font color=red>STEAM</font></font></td>
<td> <font size=2>23</font></td>
<td> <a href="http://www.forum.ex-team.com.pl/viewtopic.php?t=15" target="_blank"><img src="http://i36.tinypic.com/142a6aa.png" border="0" alt="Info"></a></td>
</tr>
</table>
</center></span></td>
</tr>
</table>
<div id="hm2" style="display: none; position: relative;">
<table width="100%" class="forumline" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<th class="thCornerL" height="25" nowrap="nowrap" onclick="javascript:ShowHide('hm','hm2','hm3');" style="cursor: pointer"> {L_BOARD_MSG} </th>
</tr>
</table>
</div>
<script language="javascript" type="text/javascript">
<!--
if(GetCookie('hm3') == '2') ShowHide('hm', 'hm2', 'hm3');
//-->
</script>
<!-- END switch_enable_board_msg -->
<div id="hm2" style="display: ''; position: relative;">
<table width="100%" class="forumline" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<th class="thCornerL" height="25" nowrap="nowrap" onclick="javascript:ShowHide('hm','hm2','hm3');" style="cursor: pointer" title="{L_VHIDE}"> {L_BOARD_MSG} </th>
</tr>
<tr>
<td class="row1"><span class="gen">{BOARD_MSG}</span></td>
</tr>
</table>
</div> |
Najlepiej będzie jeżeli zrobisz to sam
1 # Tabelka "Nasze Servery" Nie zamyka się ani nie otwiera
2 # Tabelka "Ogłoszenie" Otwiera się i zamyka
Koniec teorii za wykonaną pracę bardzo dziękuję, dam Pomógł
Radek - 11-11-2008, 00:46
Proszę:
Kod: | <table width="100%" class="forumline" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<th class="thCornerL" height="25" nowrap="nowrap">Nasze Serwery</th>
</tr>
<tr>
<td class="row1"><span class="gen"><center>
<table style="width: 100%; background-color: #222222; text-align: center">
<tr>
<td> </td>
<td> <font size="1"><b>Nazwa Serwera</b></font></td>
<td> <font size="1"><b>IP</b></font></td>
<td> <font size="1"><b>Rodzaj</b></font></td>
<td> <font size="1"><b>Sloty</b></font></td>
<td> <font size="1"><b>Dane Serwera</b></font></td>
</tr>
<tr>
<td> </td>
<td> <font size="2"><b><font color="red">EX^Team Server #1 [TP]</font></b></font></td>
<td> <font size="2"><b><b><font color="blue">193.33.177.13:27281</font></b></font></td>
<td> <font size="2"><font color="red">STEAM</font></font></td>
<td> <font size="2">23</font></td>
<td> <a href="http://www.forum.ex-team.com.pl/viewtopic.php?t=15" target="_blank"><img src="http://i36.tinypic.com/142a6aa.png" border="0" alt="Info"></a></td>
</tr>
</table>
</center></span></td>
</tr>
</table>
<!-- BEGIN switch_enable_board_msg -->
<div id="hm" style="display: ''; position: relative;">
<table width="100%" class="forumline" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<th class="thCornerL" height="25" nowrap="nowrap" onclick="javascript:ShowHide('hm','hm2','hm3');" style="cursor: pointer" title="{L_VHIDE}"> {L_BOARD_MSG} </th>
</tr>
<tr>
<td class="row1"><span class="gen">{BOARD_MSG}</span></td>
</tr>
</table>
</div>
<div id="hm2" style="display: none; position: relative;">
<table width="100%" class="forumline" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<th class="thCornerL" height="25" nowrap="nowrap" onclick="javascript:ShowHide('hm','hm2','hm3');" style="cursor: pointer"> {L_BOARD_MSG} </th>
</tr>
</table>
</div>
<script language="javascript" type="text/javascript">
<!--
if(GetCookie('hm3') == '2') ShowHide('hm', 'hm2', 'hm3');
//-->
</script>
<!-- END switch_enable_board_msg --> |
Powinno działać.
Karolus_Real - 11-11-2008, 08:52
Cytat: | Parse error: syntax error, unexpected $end in /home/karolus/domains/ex-team.com.pl/public_html/forum/cache/tpl_dark_yellow.overall_header.php on line 613 |
Gdy wchodzę na forum...
@EDIT
Poradziłem sobie już sam, pogrzebałem w kodzie i jest ok
Dla ciebie i tak pomógł bo trochę mnie naprowadziłeś
|
|
|