Tavplex
Newbie
Posts: 1
Registered: 10/19/2002
Member Is Offline
|
posted on 10/19/2002 at 12:43 AM |
|
|
How to specify which lines show which icon.
Hi,
The downloadable version of Tigra Tree Menu does everything I need except for one thing; I can't figure out how to modify the script so I can
specifiy which lines display a folder icon, and which displays a page icon. I did, however, notice on the javascript that contains the text and link
information code that the code lines that display the folder icon contains only one ' [ ' at the beginning of the line, and the lines thatdisplays the page icon are surrounded by ' [ ] .' I tried to modify this, but when I did the script didn't work. How do I specify which lines
display the folder icons, and which the page icons?
Thanks...
|
|
|
mvaisman
Member
Posts: 11
Registered: 10/17/2002
Member Is Offline
|
| posted on 10/22/2002 at 07:35 PM |
|
|
The [ and ] in the Menu (var TREE_ITEMS = [.....) are for set the Items and Sub items.
var TREE_ITEMS = [
[Level 0, [ Level 1 ] , [Level 1, [Level 2 ],[Level 2],],[Level 1]....
The icons are in a Function.
Look at the code:
function item_get_icon (b_junction) {
return this.o_root.a_tpl['icon_' + ((this.n_depth ? 0 : 32) +
(this.a_children.length ? 16 : 0) + (this.a_children.length && this.b_opened ? 8 : 0) +
(!b_junction && this.o_root.o_selected == this ? 4 : 0) +
(b_junction ? 2 : 0) + (b_junction && this.is_last() ? 1 : 0))];}
and analize it. you will find all you need.
|
|
|
|