1 // change this variable to update the theme directory
2 var ctThemeXPBase = '/~heng/JSCookTree/ThemeXP/';
4 // the follow block allows user to re-define theme base directory
5 // before it is loaded.
10 ctThemeXPBase = myThemeXPBase;
17 // theme node properties
22 // except themeLevel, all other attributes can be specified
23 // for each level of depth of the tree.
25 // HTML code to the left of a folder item
26 // first one is for folder closed, second one is for folder opened
27 folderLeft: [['<img alt="" src="' + ctThemeXPBase + 'folder1.gif" />', '<img alt="" src="' + ctThemeXPBase + 'folderopen1.gif" />']],
28 // HTML code to the right of a folder item
29 // first one is for folder closed, second one is for folder opened
30 folderRight: [['', '']],
31 // HTML code for the connector
32 // first one is for w/ having next sibling, second one is for no next sibling
33 // then inside each, the first field is for closed folder form, and the second field is for open form
34 folderConnect: [[['<img alt="" src="' + ctThemeXPBase + 'plus.gif" />','<img alt="" src="' + ctThemeXPBase + 'minus.gif" />'],
35 ['<img alt="" src="' + ctThemeXPBase + 'plusbottom.gif" />','<img alt="" src="' + ctThemeXPBase + 'minusbottom.gif" />']]],
37 // HTML code to the left of a regular item
38 itemLeft: ['<img alt="" src="' + ctThemeXPBase + 'page.gif" />'],
39 // HTML code to the right of a regular item
41 // HTML code for the connector
42 // first one is for w/ having next sibling, second one is for no next sibling
43 itemConnect: [['<img alt="" src="' + ctThemeXPBase + 'join.gif" />', '<img alt="" src="' + ctThemeXPBase + 'joinbottom.gif" />']],
45 // HTML code for spacers
46 // first one connects next, second one doesn"t
47 spacer: [['<img alt="" src="' + ctThemeXPBase + 'line.gif" />', '<img alt="" src="' + ctThemeXPBase + 'spacer.gif" />']],
49 // deepest level of theme style sheet specified
53 // theme node properties
58 // except themeLevel, all other attributes can be specified
59 // for each level of depth of the tree.
61 // HTML code to the left of a folder item
62 // first one is for folder closed, second one is for folder opened
63 folderLeft: [['<img alt="" src="' + ctThemeXPBase + 'folder2.gif" />', '<img alt="" src="' + ctThemeXPBase + 'folderopen2.gif" />']],
64 // HTML code to the right of a folder item
65 // first one is for folder closed, second one is for folder opened
66 folderRight: [['', '']],
67 // HTML code for the connector
68 // first one is for w/ having next sibling, second one is for no next sibling
69 // then inside each, the first field is for closed folder form, and the second field is for open form
70 folderConnect: [[['',''],['','']],[['<img alt="" src="' + ctThemeXPBase + 'plus.gif" />','<img alt="" src="' + ctThemeXPBase + 'minus.gif" />'],
71 ['<img alt="" src="' + ctThemeXPBase + 'plusbottom.gif" />','<img alt="" src="' + ctThemeXPBase + 'minusbottom.gif" />']]],
73 // HTML code to the left of a regular item
74 itemLeft: ['<img alt="" src="' + ctThemeXPBase + 'page.gif" />'],
75 // HTML code to the right of a regular item
77 // HTML code for the connector
78 // first one is for w/ having next sibling, second one is for no next sibling
79 itemConnect: [['',''],['<img alt="" src="' + ctThemeXPBase + 'join.gif" />', '<img alt="" src="' + ctThemeXPBase + 'joinbottom.gif" />']],
81 // HTML code for spacers
82 // first one connects next, second one doesn"t
83 spacer: [['',''],['<img alt="" src="' + ctThemeXPBase + 'line.gif" />', '<img alt="" src="' + ctThemeXPBase + 'spacer.gif" />']],
85 // deepest level of theme style sheet specified