premettendo che non sono sicuro che questa sial la sezione giusta vorrei chiedere un piccolo aiuto.
tempo fa insieme ad alcuni di voi abbiamo creato il seguente menù:
<head>
var last;
function subMenu(which) {
if (document.getElementById(which).style.display=="no ne"){
document.getElementById(which).style.display="bloc k";
if (last!=undefined && last!=which) {
document.getElementById(last).style.display="none" ;
}
last = which;
} else {
document.getElementById(which).style.display="none ";
}
}
</head>
<body>
<table>
<tr>
<td>
[img]img2.jpg[/img]</td></tr>
<tr>
<td>
<div id="sub1" style="display: none;">
[img]img3a.jpg[/img]
[img]img4a.jpg[/img]
</div>
</td>
</tr>
<tr>
<td align= center>[img]img5.jpg[/img]
</td>
</tr>
<tr>
<td>
<div id="sub2" style="display: none;">
[img]img6a.jpg[/img]
[img]img7a.jpg[/img]
</div>
</td>
</tr>
</table>
</body>
adesso le domande sono le seguente:
-esiste un modo per richiamare la tabella senza doverla necessariamente scriverla in tutte le pagine?
-quali altri metodi esistono per ottenere lo stesso risultato??

Rispondi quotando