| Author |
Message |
hqubain
Joined: 14 Jul 2003 Posts: 6
|
Posted: Mon Jul 14, 2003 7:45 pm Post subject: How do i add an active link to the bottom node/ |
|
|
I think this is basic but I can't seem to do it. If you have a top level called JAVA and you expand that and it shows Scripts(which is not expandable, I want to make the word Scripts an active link but I can't figure out how.
The code I have in tree1_nodes.js (which I downloaded from this site) is:
var TREE1_NODES = [
['JAVA', null, null,
['Scripts', null, null],
],
I want Scripts to be linked like this:
<a href="scripts/index.html">Scripts</a>
but I don't know how. can anyone help?
Thanks |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Mon Jul 14, 2003 7:57 pm Post subject: |
|
|
This is the way it should be:
| Code: | var TREE1_NODES = [
['JAVA', null, null,
['Scripts', 'scripts/index.html', null],
]
]; |
|
|
| Back to top |
|
 |
hqubain
Joined: 14 Jul 2003 Posts: 6
|
Posted: Mon Jul 14, 2003 8:13 pm Post subject: |
|
|
Perfect!
One more question. Do you know how I can keep one menu expanded as I expand another menu. Curently the first expanded menu will collapse as I expand the next one.
Many thanks. |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Mon Jul 14, 2003 8:45 pm Post subject: |
|
|
Probably, your tree_format.js file contains these lines:
| Code: | //12. true if only one branch can be opened at same time
true, |
Just change 'true' to 'false'. |
|
| Back to top |
|
 |
hqubain
Joined: 14 Jul 2003 Posts: 6
|
Posted: Mon Jul 14, 2003 8:55 pm Post subject: |
|
|
You're the best!!!!
Thank you so much. |
|
| Back to top |
|
 |
|