JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do i add an active link to the bottom node/

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree
Author Message
hqubain



Joined: 14 Jul 2003
Posts: 6

PostPosted: Mon Jul 14, 2003 7:45 pm    Post subject: How do i add an active link to the bottom node/ Reply with quote

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

PostPosted: Mon Jul 14, 2003 7:57 pm    Post subject: Reply with quote

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

PostPosted: Mon Jul 14, 2003 8:13 pm    Post subject: Reply with quote

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

PostPosted: Mon Jul 14, 2003 8:45 pm    Post subject: Reply with quote

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

PostPosted: Mon Jul 14, 2003 8:55 pm    Post subject: Reply with quote

You're the best!!!!
Thank you so much.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree All times are GMT
Page 1 of 1