Well, it would depend upon how you are using the script. If you have collapseprevious set to 'yes' and are not using the optional expand all and contract all links or the persistence feature, it would be rather easy -
Put this function in the script:
Code:
function killBold(){
var inc=0
while (statecollect[inc]){
statecollect[inc].parentNode.style.fontWeight='normal'
inc++
}
}
and use this instead of the line you had added:
Code:
if (ccollect.length>0){
killBold();
curobj.style.fontWeight=document.getElementById(cid).style.display!="block"? "bold" : "normal";
if (collapseprevious=="yes")
contractcontent(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
if (showstateobj.length>0){ //if "showstate" span exists in header
if (collapseprevious=="no")
showstateobj[0].innerHTML=(document.getElementById(cid).style.display=="block")? contractsymbol : expandsymbol
else
revivestatus()
}
}
}
Bookmarks