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: change icons dynamically
Junior Member

Posts: 2
Registered: 9/15/2004
Member Is Offline
posted on 9/27/2004 at 09:09 AM Reply With Quote
change icons dynamically


Accidentally I wrote this Thread in the false forum... now again ;-)

is it possible, to change icons dynamically without changing the tree_items.js?
(so that there is no refresh of the site required to display the changed icon on the tree)

is there a method or function?

friendly regards
View User's Profile View All Posts By User U2U Member

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 9/27/2004 at 10:18 AM Reply With Quote

You could change icons/styles by dynamicaly modifing TREE_TPL var. E.g. to change root icons:

TREE_TPL['icon_48']='icons/base.gif'; // root icon normal
TREE_TPL['icon_52']='icons/base.gif'; // root icon selected
TREE_TPL['icon_56']='icons/base.gif'; // root icon opened
TREE_TPL['icon_60']='icons/base.gif'; // root icon selected opened

to apply changes don't forget to call state_lookup() function for the items which icons/styles had been changed.
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