I like your dTree very much - but I'd like to to have a 'special' style.
And - I cannot work it out.
So - what would I like to do:
- I want every OPEN node to be displayed in an color (RED)
- I just get it for the NodeSel
See my added Screenshot.
I tried to edit the dtree.js. Hmmm - the whole tree was gone ...
Even when I add an comment, the tree wont work any more.
What do I have to care about when modifying the dtree.js?
Please give a hint howTo solve this.
I'd need to color the text after the MINUS-Nodes.
somewhere here?
Code: Select all
/* Highlights the selected node*/
dTree2749.prototype.s = function(id) {
if (!this.config.useSelection) return;
var cn = this.aNodes[id];
if (cn._hc && !this.config.folderLinks) return;
if (this.selectedNode != id) {
if (this.selectedNode || this.selectedNode==0) {
eOld = document.getElementById("s" + this.obj + this.selectedNode);
eOld.className = "node";
}
eNew = document.getElementById("s" + this.obj + id);
eNew.className = "nodeSel";
this.selectedNode = id;
if (this.config.useCookies) this.setCookie('cs' + this.obj, cn.id);
}
};
Christian