Tror ikke der er mange der forstår dit spørgsmål. Alle de scripts der er at finde på nettet, har jo en forklaring til hvor du sætter koden ind. Der er en del af koden du skal sætte ind i <head>HER</head> og noget du skal sætte ind i <body>HER</body>.
Prøv denne her:
(constMaxItem=3 retter du til det antal Expandcollapse-menu'er du skal have, i dette tilfælde er der tre.)
I HEAD:
<SCRIPT LANGUAGE=javascript>
constMaxItem=3
function fnDispThis(active)
{
for (i=1; i < constMaxItem+1; i++)
{
if (i!=active)
{
document.all("sub"+i).style.display="NONE"
}
else
{
document.all("sub"+active).style.display="BLOCK"
}
}
}
</SCRIPT>
I BODY
</SCRIPT>
</head>
<body>
<table BORDER="0" CELLSPACING="0" CELLPADDING="0">
<tr>
<td class="format" onclick="fnDispThis(1)" style="Cursor:HAND;"><B>Overskrift eller grafik</B><br>
<DIV id="sub1" style="Display:'NONE';">
<A href="
http://DitLink.dk">Tekstlink eller grafik</a><br>
<A href="
http://DitLink.dk">Tekstlink eller grafik</a><br>
<A href="
http://DitLink.dk">Tekstlink eller grafik</a><br>
</DIV>
</td>
</tr>
<tr>
<td class="format" onclick="fnDispThis(2)" style="Cursor:HAND;"><B>Overskrift eller grafik</B><br>
<DIV id="sub2" style="Display:'NONE';">
<A href="
http://DitLink.dk">Tekstlink eller grafik</a><br>
<A href="
http://DitLink.dk">Tekstlink eller grafik</a><br>
<A href="
http://DitLink.dk">Tekstlink eller grafik</a><br>
</DIV>
</td>
</tr>
<tr>
<tr>
<td class="format" onclick="fnDispThis(3)" style="Cursor:HAND;"><B>Overskrift eller grafik</B><br>
<DIV id="sub3" style="Display:'NONE';">
<A href="
http://DitLink.dk">Tekstlink eller grafik</a><br>
<A href="
http://DitLink.dk">Tekstlink eller grafik</a><br>
<A href="
http://DitLink.dk">Tekstlink eller grafik</a><br>
</DIV>
</td>
</tr>
</table>