The Menu, reloaded

FX Documentation
Page-Integration
Menu hierarchy
Group behaviour
Group style settings
Group main settings
Item behaviour
Item style settings
Indicator settings
MSIE effects
Positioning the menu
Adding items and submenus
FX Web Menus Examples
FX DHTML Menu Example
Horizontal Web Menu
Windows 98 Example
Windows XP Example
Relative Positioning
Hiding Form Elements
Hiding Flash animations

Itemstylesettings v3.0.x

Item screenshot: Borders and Padding

Example item style array:

var itemstyle=[ , , 'Verdana,Arial', 'Verdana,Arial', 'Verdana,Arial', , , , 9, 9, 9, 3, 2, '#000000', '#FFFFFF', '#FFFFFF', 'normal', 'normal', 'normal', 'normal', 'normal', 'normal', 'none', 'none', 'none', , 0, '#000000', '#000000', '#000000', 0, 0, 0, 0, 0, '#000000', '#000000', '#000000', 0, 0, 0, 0, 0, 0, , , , 0, '', '#FFFFFF', '#6699CC', '#009933', 1, IndicatorArrowRightSubOpensRight, IndicatorArrowRightSubOpensUp, IndicatorArrowRightSubOpensLeft, IndicatorArrowRightSubOpensDown, IndicatorArrowRightSubOpensDownRight, , , 0, '', '', '', 15, 10, 15, 2, 0, 0, 0 ]

Example item style array with property names:


Editing the item style for a FX DHTML menu is similar to defining css for HTML-pages. Think of it as plain text. Itemstyle defines visual effects for each menu item. For FX Menu following things may be defined:
var itemstyle=[
,               //for future purpose
,               //for future purpose
'Verdana,Arial',//FontFamilyOFF
'Verdana,Arial',//FontFamilyOn
'Verdana,Arial',//FontFamilyClick
,               //for future purpose
,               //for future purpose
,               //for future purpose
9,              //FontSizeOff
9,              //FontSizeOn
9,              //FontSizeClick
3,              //PaddingLeft
2,              //PaddingTop
'#000000',      //FontColorOff
'#FFFFFF',      //FontColorOn
'#FFFFFF',      //FontColorClick
'normal',       //FontBoldOff
'normal',       //FontBoldOn
'normal',       //FontBoldClick
'normal',       //FontItalicsOff
'normal',       //FontItalicsOn
'normal',       //FontItalicsClick
'none',         //TextDecorationUnderlineOff
'none',         //TextDecorationUnderlineOn
'none',         //TextDecorationUnderlineClick
,               //LetterSpacing
0,              //Item3DEffect
'#000000',      //BorderColorOff
'#000000',      //BorderColorOn
'#000000',      //BorderColorClick
0,              //BorderWidth
0,              //BorderLeft
0,              //BorderTop
0,              //BorderRight
0,              //BorderBottom
'#000000',      //InnerBorderColorOff
'#000000',      //InnerBorderColorOn
'#000000',      //InnerBorderColorClick
0,              //InnerBorderWidth
0,              //InnerBorderLeft
0,              //InnerBorderTop
0,              //InnerBorderRight
0,              //InnerBorderBottom
0,              //BorderImageActive
,               //BorderImageSrc
,               //InnerBorderImageActive
,               //InnerBorderImageSrc
0,              //BgImageActive
'',             //BgImageSrc
'#FFFFFF',      //BgColorOff
'#6699CC',      //BgColorOn
'#009933',      //BgColorClick
1,              //IndicatorArrowRightActivate
IndicatorArrowRightSubOpensRight,    //IndicatorArrowRightSubOpensRight
IndicatorArrowRightSubOpensUp,       //for future purpose
IndicatorArrowRightSubOpensLeft,     //for future purpose
IndicatorArrowRightSubOpensDown,     //IndicatorArrowRightSubOpensDown
IndicatorArrowRightSubOpensDownRight,//for future purpose
,               //for future purpose
,               //for future purpose
0,              //LeftArrowActivate
'',             //LeftArrowSrcOff
'',             //LeftArrowSrcOn
'',             //LeftArrowSrcClick
15,             //LeftArrowWidth
10,             //LeftArrowHeight
15,             //LeftArrowLeft
2,              //LeftArrowTop
0,              //for future purpose
0,              //for future purpose
0               //Item3DEffectIsAuto
]


Properties

PosPropertyDescriptionExampleValues
0for future purpose   
5for future purpose   
2FontFamilyOFFDo not use to exotic font-families or set a common font-family as second.'Arial, Verdana, Helvetica'
'MT Extra, Arial'
Fonts.
3FontFamilyOnDo not use to exotic font-families or set a common font-family as second.'Arial, Verdana, Helvetica'
'MT Extra, Arial'
Fonts.
4FontFamilyClickDo not use to exotic font-families or set a common font-family as second.'Arial, Verdana, Helvetica'
'MT Extra, Arial'
Fonts.
5for future purpose   
6for future purpose   
7for future purpose   
8FontSizeOffUnit is 'point'.9positive integer number
9FontSizeOnUnit is 'point'.9positive integer number
10FontSizeClickUnit is 'point'.9positive integer number
11PaddingLeftUnit is 'pixel'.5positive integer number
12PaddingTopUnit is 'pixel'.2positive integer number
13FontColorOff '#003366'
blue
red, ....
color values
14FontColorOn '#003366'
blue
red, ....
color values
15FontColorClick '#003366'
blue
red, ....
color values
16FontBoldOffSet the font-weight. Numbers aren't accepted. Use 'normal' or 'bold'.'normal'
'bold'
'normal' or 'bold'
17FontBoldOnSet the font-weight. Numbers aren't accepted. Use 'normal' or 'bold'.'normal'
'bold'
'normal' or 'bold'
18FontBoldClickSet the font-weight. Numbers aren't accepted. Use 'normal' or 'bold'.'normal'
'bold'
'normal' or 'bold'
19FontItalicsOff 'italic'
'normal'
'italic' or 'normal'
20FontItalicsOn 'italic'
'normal'
'italic' or 'normal'
21FontItalicsClick 'italic'
'normal'
'italic' or 'normal'
22TextDecorationUnderlineOff 'underline'
'none'
'underline' or 'none'
23TextDecorationUnderlineOn 'underline'
'none'
'underline' or 'none'
24TextDecorationUnderlineClick 'underline'
'none'
'underline' or 'none'
25LetterSpacingUnit is pixel. Only supported by DOM-compliant browsers2positive integer number
26Item3DEffectSpecial feature: Creates 3-D borders for the item. ItemBorderColor and ItemInnerBorderColor should have different values. If you want the borderwidths to have equal values set Item3DEffectIsAuto to true(1) and set the width in ItemBorderWidth. boolean: true(1) or false(0)
27BorderColorOff '#003366'
blue
red, ....
color values
28BorderColorOn '#003366'
blue
red, ....
color values
29BorderColorClick '#003366'
blue
red, ....
color values
30BorderWidthUnit is pixel.2positive integer number
31BorderLeftUnit is pixel.2positive integer number
32BorderTopUnit is pixel.2positive integer number
33BorderRightUnit is pixel.2positive integer number
34BorderBottomUnit is pixel.2positive integer number
35InnerBorderColorOff '#003366'
blue
red, ....
color values
36InnerBorderColorOn '#003366'
blue
red, ....
color values
37InnerBorderColorClick '#003366'
blue
red, ....
color values
38InnerBorderWidthUnit is pixel.2positive integer number
39InnerBorderLeftUnit is pixel.2positive integer number
40InnerBorderTopUnit is pixel.2positive integer number
41InnerBorderRightUnit is pixel.2positive integer number
42InnerBorderBottomUnit is pixel.2positive integer number
43BorderImageActiveActivates a background-image, that is defined in ItemBorderImageSrc boolean: true(1) or false(0)
44BorderImageSrcEnter background-image path for ItemBorder here. Important: Image-path has to be relative to the HTML-page, where the menu will be displayed and not relative to the js-file! Instead of "\" use "/".'images/flowerbackground.gif' 
45InnerBorderImageActiveActivates a background-image, that is defined in ItemInnerBorderImageSrc boolean: true(1) or false(0)
46InnerBorderImageSrcEnter background-image path for ItemInnerBorder here. Important: Image-path has to be relative to the HTML-page, where the menu will be displayed and not relative to the js-file! Instead of "\" use "/".'images/flowerbackground.gif' 
47BgImageActiveActivates a background-image for the item boolean: true(1) or false(0)
48BgImageSrcEnter background-image path for the item here. Important: Image-path has to be relative to the HTML-page, where the menu will be displayed and not relative to the js-file! Instead of "\" use "/".'images/flowerbackground.gif' 
49BgColorOff '#003366'
blue
red, ....
color values
50BgColorOn '#003366'
blue
red, ....
color values
51BgColorClick '#003366'
blue
red, ....
color values
52IndicatorArrowRightActivateSet to true(1) to display an arrow or any image, in case item contains a submenu. For horizontal groups the arrow-settings are handled in the IndicatorArrowRightSubOpensDown array, for vertical groups in the IndicatorArrowRightSubOpensRight. boolean: true(1) or false(0)
53IndicatorArrowRightSubOpensRightInterface to the arrow-settings. The arrow-settings have to be defined before the item-style!  
54for future purpose   
55for future purpose   
56IndicatorArrowRightSubOpensDownInterface to the arrow-settings. The arrow-settings have to be defined before the item-style!  
57for future purpose   
58for future purpose   
59for future purpose   
60LeftArrowActivateActivates LeftArrowSrc. boolean: true(1) or false(0)
61LeftArrowSrcOffDisplays an arrow or any image before the text or the "mainimage". Image-path has to be relative to the HTML-page, where the menu will be displayed and not relative to the js-file! Instead of "\" use "/".'images/arrow.gif' 
62LeftArrowSrcOnImage-path has to be relative to the HTML-page, where the menu will be displayed and not relative to the js-file! Instead of "\" use "/".'images/arrow.gif' 
63LeftArrowSrcClickImage-path has to be relative to the HTML-page, where the menu will be displayed and not relative to the js-file! Instead of "\" use "/".'images/arrow.gif' 
64LeftArrowWidthUnit is pixel.15positive integer number
65LeftArrowHeightUnit is pixel.15positive integer number
66LeftArrowLeftUnit is pixel.5positive integer number
67LeftArrowTopUnit is pixel.2positive integer number
68for future purpose   
69for future purpose   
70Item3DEffectIsAutoSets ItemBorderwidths and ItemBorderWidths to the value defined in ItemBorderWidth. boolean: true(1) or false(0)
Home | Forum | Link to us
FXsinus.com - Austria.
Vor der Bruck 15,
A-2770 Goodstone
 © Copyright 2001-2004 © FXsinus.com, All Rights Reserved. webmaster@fxsinus.com