Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: multiple icons
siriustek
Junior Member

Posts: 2
Registered: 6/29/2006
Member Is Offline
posted on 6/29/2006 at 01:32 AM Reply With Quote
multiple icons


Hi,

A while ago, I recommended tigra pro menu to a client. They agreed and bought it. The first version of the software was a success. Now they want me to implement some new features:
- i need to show two icons instead of one
- and they need to be after the node text

Can you please help me out?
Kind regards..
View User's Profile View All Posts By User U2U Member
Tolstoy
Member

Posts: 13
Registered: 5/25/2006
Member Is Offline
posted on 6/29/2006 at 05:08 AM Reply With Quote
You can hard code it using some simple HTML


You can simply put some HTML in your labels, namely the img tag.

Try this example.... reference both 'Top Frame' entries. You can test it by replacing the tree_items.js in demo2 with the following.

Code:

var TREE_ITEMS =
[
['Frame targeting', 0, 0,
['Same frame','links.html',{'tw':'_self'}],
['Top frame <img border=0 src=icons/base.gif>&nbsp;<img border=0src=icons/folder.gif>','links.html',{'tw':'_top'}],
['New window','links.html',{'tw':'_blank'}],
['Window named frames', 0, 0,
['Top frame <img border=0 src=icons/base.gif>','links.html',{'tw':'top_frame'}],
['Left Frame','links.html',{'tw':'left_frame'}],
['Right frame','links.html',{'tw':'right_frame'}],
['Bottom frame','links.html',{'tw':'bottom_frame'}],
],
]
];


You can't do this natively without modifying the tree.js drastically. I've attached a screen shot to demonstrate.

Lev

Tolstoy has attached this image:
icons_after.PNG - 3.88kb
View User's Profile View All Posts By User U2U Member
siriustek
Junior Member

Posts: 2
Registered: 6/29/2006
Member Is Offline
posted on 6/29/2006 at 06:19 AM Reply With Quote

thanks!!
We'll give it a try
View User's Profile View All Posts By User U2U Member
Tolstoy
Member

Posts: 13
Registered: 5/25/2006
Member Is Offline
posted on 6/29/2006 at 09:30 AM Reply With Quote
You can also double up icons on the left...


If you want to add a second icon on the left side, simply add the following BEFORE the label:

'&nbsp;<img border=0 src=someicon.gif> Some Label'

The &nbsp; adds a 'non-breaking space', which is useful for keeping things fromcrammingtogether. :)

Lev
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Multiple Trees
Frames Targeting
Icons and Styles Overloading
Event Handling
Performance Test
Version 1.2 features
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004