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: lowering one item in level
Junior Member

Posts: 3
Registered: 9/20/2003
Member Is Offline
posted on 1/16/2004 at 11:06 AM Reply With Quote
lowering one item in level

very easy question:

the last item within one level needs to be placed lower - in this case it's "NIEUWS"... how, where, when?

/* --- menu items --- */
var MENU_ITEMS0 = [
['Duitsland', null, null,
['Berlijn', 'cr_berlijn.shtm']
['Engeland', null, null,
['Noord-Engeland', 'cr_noordengeland.shtm']
['Spanje', null, null,
['Castilie', 'cr_castilie.shtm'],
['Mallorca & Menorca', 'cr_balearen.shtm']
['Portugal', null, null,
['Lissabon', 'cr_lissabon.shtm']
['Italie', null, null,
['Genua', 'cr_genua.shtm'],
['Florence & N-Toscane', 'cr_florence.shtm'],
['Umbrie & Z-Toscane', 'cr_umbrie.shtm'],
['Villa?s en tuinen', 'cr_villas.shtm'],
['Roma Aeterna', 'cr_roma.shtm'],
['De Golf van Napels', 'cr_golf.shtm'],
['Sicilie', 'cr_sicilie.shtm']
['Griekenland', null, null,
['Peloponnesos', 'cr_peloponnesos.shtm'],
['Byz. paasfeest', 'cr_byzantin.shtm'],
['Kreta & Santorini', 'cr_kreta.shtm']
['Turkije', null, null,
['Turkije', 'cr_turkije.shtm']
['Tunesie', null, null,
['Carthago & omgeving', 'cr_carthago.shtm']
['Egypte', null, null,
['Egypte', 'cr_egypte.shtm']
['NIEUWS', null, null,
['Nieuws cult. reizen', 'cr_nieuws.shtm']
View User's Profile View All Posts By User U2U Member
Super Administrator

Posts: 24
Registered: 12/16/2003
Member Is Offline
posted on 1/16/2004 at 01:53 PM Reply With Quote

You should use a wrapping function for desired menu elements.

Wrappers are JavaScript function that you may write to ease menu maintenance and to reduce network usage.
These functions print html around the text specified before inserting it into menu.
With wrappers, your code may look like:

function wrap (text, color) {
return '<span style="color: ' + color + ';">' + text + '</span>';
var MENU_ITEMS = [
// level 0 item 0
[[wrap('State is mout', 'green'),
wrap('State is mover', 'orange'),
wrap('State is mdown', 'red')
], "javascript:alert('Click!')"],
// level 0 item 1
['Contact', "contact us at"],

More detailed information is located at
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page Product Page
Functionality demos Functionality demos
Design demos Design demos
Icons & arrows
Hi there!
MS Style
XP Style
Product Documentation Documentation
Documenation Page
Change Log
Menus Comparison Table
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