captainfl
Joined: 05 Dec 2005 Posts: 3
|
Posted: Mon Dec 05, 2005 4:43 pm Post subject: Cooljstreepro fails when files are moved to a folder |
|
|
Hello,
I use CooljsTreePro 2.7.0. The menu I made works fine if the htm files are in the root of my website, but when I move the files to a subfolder the path of the menulinks point to a false location.
Look at my website, made with Frontpage 2003 (don't laugh please!)
www.sealevel.be
If I move for instance the file "Cuba.htm" to the folder "Destinations", the menu still expands, but the links will point to "Destinations/discounts.htm" although discounts.htm is in the root. The same goes for the arrow images on top of the menu.
It's no use to change the links in the tree_nodes.js to a relative path. In this case the menu works fine for files in subfolders, but not for the files in the root.
tree_nodes.js
| Code: |
var TREE_NODES = [
['zeiljachten', '#', null,
['bareboat', 'zeiljachten_bb.htm', null],
['crewed', 'zeiljachten_cr.htm', null]],
['motorjachten', '#', null,
['bareboat', 'motorjachten_bb.htm', null],
['crewed', 'motorjachten_cr.htm', null]],
['catalogus', 'catalogus.htm', null],
['discounts', 'discounts.htm', null],
['incentives', 'incentive.htm', null],
['weer', '#', null],
['flightinfo', 'flightinfo.htm', null],
['verzekering', 'verzekeringen.htm', null],
['downloads', 'downloads.htm', null],
['prijsaanvraag', 'contact.htm', null],
['oude tarieven', 'destinations.htm', null],
['links', '#', null]
];
|
tree_format.js
| Code: |
var TREE_FORMAT = [
// 0. left position
0,
// 1. top position
0,
// 2. show buttons ("+" and "-" images)
true,
// 3. button images: collapsed state, expanded state, blank image
['images/arrowright.gif', 'images/arrowdown.gif', 'images/b.gif'],
// 4. size of buttons: width, height, indent amount for childless nodes
[9, 9, 9],
// 5. show icons ("folder" and "document")
false,
// 6. icon images: closed folder, opened folder, document
['images/fc.gif', 'images/fe.gif', 'images/d.gif'],
// 7. size of icons: width, height
[0, 0],
// 8. indent amount for each level of the tree
[0, 8, 16, 24, 32, 40, 48, 56, 64],
// 9. background color for the tree
"#396C93",
// 10. default CSS class for nodes
'clsNode',
// 11. individual CSS classes for levels of the tree
[null, 'clsChild', null, null, null, null, null, null, null],
// 12. "single branch" mode
true,
// 13. padding and spacing values for all nodes
[0, 4],
// 14. "explorer-like" mode
false,
// 15. images for "explorer-like" mode
['', '', '', '', '', '', '', '', '', ''],
// 16. size of images for "explorer-like" mode: width, height
[0, 0],
// 17. store tree state into cookies
true,
// 18. relative positioning mode
true,
// 19. initial space for the relatively positioned tree: width, height
[133, 400],
// 20. resize container of the relatively positioned tree
false,
// 21. change background-color and style for selected node
false,
// 22. background color for unselected node, background color for selected node, class for selected node
["", "", 'clsNode:hover']
];
|
tree_stules.js
| Code: |
.clsNode {
font-family: verdana;
font-size: 8pt;
font-weight: bold;
text-decoration: none;
cursor: hand;
color: white;
}
.clsChild {
font-family: verdana;
font-size: 8pt;
text-decoration: none;
cursor: hand;
color: white;
}
.clsNode:hover {
text-decoration: none;
color: #FF9933;
background-color: #396C93
}
.clsChild:hover {
text-decoration: none;
color: #FF9933;
background-color: #396C93
|
Can you help me out ?
Thanks
Frans |
|