PDA

View Full Version : [JS]menu dinamico


sven | front
30-08-2004, 22:37
Devo fare una specie di menu dinamico--

sotto un esempio di tabella


<!-- 1 --><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!-- 2 --> <tr background="tile_cat.gif">
<!-- 3 --> <td height="27" colspan="4" class="unnamed1">&nbsp;<a href="#"><img src="minus.gif" width="9" height="9" border="0"></a> <a href="#"><strong>Title</strong></a></td>
<!-- 4 --> </tr>
<!-- 5 --> <tr>
<!-- 6 --> <td colspan="3" bgcolor="#D1DCEB" class="unnamed2"><div align="center"><img src="cal_weekview.gif" width="21" height="21"></div></td>
<!-- 7 --> <td width="93%" colspan="3"><div style='border:1px solid #8394B2'>
<!-- 8 --> <table cellpadding='5' cellspacing='0' border='0' width='100%'>
<!-- 9 --> <tr>
<!-- 10 --> <td width='45%' class='tdrow2'><div align='left' style='width:auto;'><img src="item.gif" width="7" height="7"> Opzioni generali </div></td>
<!-- 11 --> </tr>
<!-- 12 --> <tr>
<!-- 13 --> <td class='tdrow2'><img src="item.gif" width="7" height="7"> A</td>
<!-- 14 --> </tr>
<!-- 15 --> <tr>
<!-- 16 --> <td class='tdrow2'><img src="item.gif" width="7" height="7"> B</td>
<!-- 17 --> </tr>
<!-- 18 --> <tr>
<!-- 19 --> <td class='tdrow2'><img src="item.gif" width="7" height="7"> C</td>
<!-- 20 --> </tr>
<!-- 21 --> <tr>
<!-- 22 --> <td class='bbx'><img src="item.gif" width="7" height="7"> D</td>
<!-- 23 --> </tr>
<!-- 24 --> </table>
<!-- 25 --> </div></td>
<!-- 26 --> </tr>
<!-- 27 --> </table>



per comodità in commenti html vi ho segnato le righe

dunque, io devo fare in modo che cliccando sul titolo <!-- 3 --> e praticamente il contenuto che va dalla linea 5 alla linea 26 nn si deve piu vedere , mentre cliccandoci dinuovo si rende visibile, nn so se rendo l'idea


una cosa di questa

////////////// Aperto
_________________
|_________________|
| |
|_________________|
| |
|_________________|

///////////// Chiuso

_________________
|_________________|


Scusate il disegno idiota , ma era l'unico modo per cercar di farvi capire lol :D

Grazie per le risposte

:mc:

sven | front
31-08-2004, 00:10
nn fa niente, ho risolto, ggraize lo stesso