dragoon
Posts: 173
|
Posted: 01/09/2006, 2:42 AM |
|
a slight modification that will open only a category at a time from this menu (opening a new category we'll make the previous hidden)
in the ccs example pack 2 replace function expandit(curobj) with this:
//dont' forget this; here it will be stored the id of the current opened category
var temp_catrow;
function expandit(curobj){
if (DomYes) {
var catrow=document.getElementById("cat_"+curobj.id);
} else {
var catrow=document.all["cat_"+curobj.id];
}
if (temp_catrow) {
if (temp_catrow != catrow) {
catrow.style.display = "none" ? "block" : "none";
temp_catrow.style.display = "none" ? "none" : "block";
}
}
else {
catrow.style.display = "none" ? "block" : "none";
}
temp_catrow = catrow;
}
|