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 

A way to eliminate image for child node?

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



Joined: 25 Jun 2003
Posts: 1

PostPosted: Wed Jun 25, 2003 11:21 pm    Post subject: A way to eliminate image for child node? Reply with quote

Hi everyone,

I was just curious if there was a way to eliminate the accompanying image that goes with child nodes. For example:

[img] Parent Node
[img] Child node
[img] Child node

So, in the above, customizing the code to get rid of the imgs by the child nodes.

Any help would be appreciated!

Thanks,
James
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Thu Jun 26, 2003 8:18 pm    Post subject: Reply with quote

Probably, you are using folder images, and options in your tree_format.js file look like the following:
Code:
...
//5. show folder image
   true,
//6. folder images (closed/opened/document)
   ["img/fc.gif", "img/fe.gif", "img/d.gif"],
...

You can set document image to blank one (e.g. "img/b.gif).
If you are using Pro version then you can assign individual image sets to nodes:
Code:

['Caption', 'url.html', null, {"format":{"folders":["img/b.gif", "img/b.gif", "img/d.gif"]}}, ...

Probably, you'll also have to adjust indentation levels - option #8.
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