menu
Jeg har følgende kode:<SCRIPT language=Javascript>
document.WM = new Object();
document.WM.menu = new Object();
document.WM.menu.dropdown = new Array();
function WM_initializeToolbar(){
var i;
if (document.all){
for(i = 0; i < document.all('container').all.length; i++){
if ((document.all('container').all[i].className == 'header') || (document.all('container').all[i].className == 'links')){
document.WM.menu.dropdown[document.WM.menu.dropdown.length] = document.all('container').all[i];
}
}
}
}
function WM_collapse(item){
if(document.WM.menu.dropdown.length){
if (document.WM.menu.dropdown[item + 1].style.display == 'none'){
document.WM.menu.dropdown[item + 1].style.display = '';
if(document.WM.menu.dropdown[item].id == 'Arnold'){
}
} else {
document.WM.menu.dropdown[item + 1].style.display = 'none';
}
}
}
</SCRIPT>
</HEAD>
<BODY onload="WM_initializeToolbar(); return false;">
<DIV id=container>
<DIV class=header id=authoring>
<A class=headerlink onclick="WM_collapse(0); return false" href="#"><B>Fold ud</B></A>
</DIV>
<DIV class=links id=authoringContent style="DISPLAY: none">Morten Nielsen</DIV>
<div>Nielsen</div>
<div>blabla</div>
</div>
Den virker fint, men jeg vil have mit gemte layer til at erstatte det layer jeg trykker på, og samtidig rykke de andre ned!
Hvordan gør jeg det?
