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 

Node Selection State

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    JavaScript.CoolDev.Com Forum Index -> COOLjsTree
Author Message
CSPalmisano



Joined: 11 Oct 2006
Posts: 2

PostPosted: Thu Oct 12, 2006 5:37 pm    Post subject: Node Selection State Reply with quote

I realize that elements 21 and 22 in tree_format.js let you apply a background color to selected nodes, but when the page reloads the selected node reverts to its unselected state. Is there a workaround for this?
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Sat Jan 27, 2007 6:16 am    Post subject: Reply with quote

You should enable option #17:
Code:
// 17. store tree state into cookies
    true,
Back to top
parallon



Joined: 27 Jan 2006
Posts: 10

PostPosted: Wed Jun 06, 2007 4:52 pm    Post subject: Reply with quote

What CSS properties apply to Option 22? I am trying to use an image and a change in font color, but the only thing I get is blue text.

I have the following for option 22:

Code:
[, , "treeNodeSpec0:select"],


... and here is the CSS:

Code:
.treeNodeSpec0:select {
   background-image: url(images/Menu_Button_on.gif);
   text-decoration: none; color: red; font: bold 7.5pt tahoma;
}


Thank you.
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Wed Jun 06, 2007 4:58 pm    Post subject: Reply with quote

I think you should not use colon (:) in your CSS classes because it conflicts with pseudoclassed. Replace it with underscore (_) or dash (-).
Back to top
parallon



Joined: 27 Jan 2006
Posts: 10

PostPosted: Wed Jun 06, 2007 6:51 pm    Post subject: Reply with quote

Worked like a charm.

Thanks again!
Back to top
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    JavaScript.CoolDev.Com Forum Index -> COOLjsTree All times are GMT
Page 1 of 1