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 

Clickabe image is not appearing for the topmost parent

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



Joined: 06 Nov 2004
Posts: 1

PostPosted: Sun Nov 07, 2004 12:59 am    Post subject: Clickabe image is not appearing for the topmost parent Reply with quote

I am trying construct a tree by using the following format

var TREE_FORMAT =
[
//0. left position
0,
//1. top position
0,
//2. show +/- buttons
true,
//3. couple of button images (collapsed/expanded/blank)
["http://www.oracle.com/admin/images/r_arrow.gif", "http://www.oracle.com/admin/images/d_arrow.gif", "http://www.oracle.com/admin/images/stretch.gif"],
//4. size of images (width, height,ident for nodes w/o children)
[10,10,10],
//5. show folder image
false,
//6. folder images (closed/opened/document)
["http://www.oracle.com/admin/images/r_arrow.gif", "http://www.oracle.com/admin/images/d_arrow.gif", "http://www.oracle.com/admin/images/stretch.gif"],
//7. size of images (width, height)
[16,16],
//8. identation for each level [0/*first level*/, 16/*second*/, 32/*third*/,...]
//[0,5,10,15],
[0,16,32,48,64,80,96,112,124],
//9. tree background color ("" - transparent)
"",
//10. default style for all nodes
"navlink",
//11. styles for each level of menu (default style will be used for undefined levels)
["navhead","navlink"],//["clsNodeL0","clsNodeL1","clsNodeL2","clsNodeL3","clsNodeL4"],
//12. true if only one branch can be opened at same time
false,
//13. item padding and spacing
[1,0],
/************** PRO EXTENSIONS ********************/
//14. draw explorer like tree ( identation will be ignored )
false,
//15. Set of explorer images (folder, openfolder, page, minus, minusbottom, plus, plusbottom, line, join, joinbottom)
["images/folder.gif","images/folderopen.gif","images/page.gif","images/minus.gif","images/minusbottom.gif","images/plus.gif","images/plusbottom.gif","images/line.gif","images/join.gif","images/joinbottom.gif"],
//16. Explorer images width/height
[19,16],
//17. if true state will be saved in cookies
false,
//18. if true - relative position will be used. (tree will be opened in place where init() was called)
true,
//19. width and height of initial rectangle for relative positioning
[180,400],
//20. resize background //works only under IE4+, NS6+ for relatiive positioning
true,
//21. support bgcolor changing for selected node
false,
//22. background color for non-selected and selected node
["#DDDDDD","#DDDDDD"]
];

---------------------------------
I want clickable image button to appear for all the parents, but it doesn't appear for the topmost parent, instead the blank button image appears.

If anyone could help to find out why it is not appearing, it is greatly appreciated.

Thanks in advance!
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Wed Nov 17, 2004 7:55 pm    Post subject: Reply with quote

Check your tree_nodes.js file - it should not contain individual image definitions ("format:{...}").
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