PageRenderTime 194ms CodeModel.GetById 90ms app.highlight 8ms RepoModel.GetById 93ms app.codeStats 0ms

/secured/css/smartmenus/c_config.js

http://oregon-caspages.googlecode.com/
JavaScript | 466 lines | 181 code | 253 blank | 32 comment | 0 complexity | ecaf243f7f076310f5d55c736e3462e9 MD5 | raw file
  1// USE WORDWRAP AND MAXIMIZE THE WINDOW TO SEE THIS FILE
  2
  3c_styles={};c_menus={}; // do not remove this line
  4
  5
  6
  7// You can remove most comments from this file to reduce the size if you like.
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17/******************************************************
 18
 19	(1) GLOBAL SETTINGS
 20
 21*******************************************************/
 22
 23
 24
 25c_hideTimeout=500; // 1000==1 second
 26
 27c_subShowTimeout=100;
 28
 29c_keepHighlighted=true;
 30
 31c_findCURRENT=false; // find the item linking to the current page and apply it the CURRENT style class
 32
 33c_findCURRENTTree=true;
 34
 35c_overlapControlsInIE=true;
 36
 37c_rightToLeft=false; // if the menu text should have "rtl" direction (e.g. Hebrew, Arabic)
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47/******************************************************
 48
 49	(2) MENU STYLES (CSS CLASSES)
 50
 51*******************************************************/
 52
 53
 54
 55// You can define different style classes here and then assign them globally to the menu tree(s)
 56
 57// in section 3 below or set them to any UL element from your menu tree(s) in the page source
 58
 59
 60
 61
 62
 63c_imagesPath="smartmenus/"; // path to the directory containing the menu images
 64
 65
 66
 67
 68
 69c_styles['MM']=[ // MainMenu (the shorter the class name the better)
 70
 71[
 72
 73// MENU BOX STYLE
 74
 751,		// BorderWidth
 76
 77'solid',	// BorderStyle (CSS valid values except 'none')
 78
 79'#4D4C76',	// BorderColor ('color')
 80
 811,		// Padding
 82
 83'#eeeeee',	// Background ('color','transparent','[image_source]')
 84
 85'',		// IEfilter (only transition filters work well - not static filters)
 86
 87''		// Custom additional CSS for the menu box (valid CSS)
 88
 89],[
 90
 91// MENU ITEMS STYLE
 92
 931,		// BorderWidth
 94
 95'solid',	// BorderStyle (CSS valid values except 'none')
 96
 97'solid',	// OVER BorderStyle
 98
 99'#cccccc',	// BorderColor ('color')
100
101'#cccccc',	// OVER BorderColor
102
1034,		// Padding
104
105'#eeeeee',	// Background ('color','transparent','[image_source]')
106
107'#ffffff',	// OVER Background
108
109'#001D4F',	// Color
110
111'#001D4F',	// OVER Color
112
113'12px',		// FontSize (values in CSS valid units - %,em,ex,px,pt)
114
115'Trebuchet MS,verdana,arial,helvetica,sans-serif',	// FontFamily
116
117'normal',		// FontWeight (CSS valid values - 'bold','normal','bolder','lighter','100',...,'900')
118
119'none',		// TextDecoration (CSS valid values - 'none','underline','overline','line-through')
120
121'underline',		// OVER TextDecoration
122
123'left',		// TextAlign ('left','center','right','justify')
124
1251,		// ItemsSeparatorSize
126
127'solid',	// ItemsSeparatorStyle (border-style valid values)
128
129'#eeeeee',	// ItemsSeparatorColor ('color','transparent')
130
1311,		// ItemsSeparatorSpacing
132
133false,			// UseSubMenuImage (true,false)
134
135'[h_arrow.gif]',	// SubMenuImageSource ('[image_source]')
136
137'[h_arrow_over.gif]',	// OverSubMenuImageSource
138
1397,			// SubMenuImageWidth
140
1414,			// SubMenuImageHeight
142
143'10',			// SubMenuImageVAlign ('pixels from item top','middle')
144
145'solid',		// VISITED BorderStyle
146
147'#cccccc',		// VISITED BorderColor
148
149'#eeeeee',		// VISITED Background
150
151'#001D4F',		// VISITED Color
152
153'none',			// VISITED TextDecoration
154
155'[h_arrow.gif]',	// VISITED SubMenuImageSource
156
157'solid',		// CURRENT BorderStyle
158
159'#cccccc',		// CURRENT BorderColor
160
161'#eeeeee',		// CURRENT Background
162
163'#001D4F',		// CURRENT Color
164
165'none',			// CURRENT TextDecoration
166
167'[h_arrow.gif]',	// CURRENT SubMenuImageSource
168
169'',		// Custom additional CSS for the items (valid CSS)
170
171'',		// OVER Custom additional CSS for the items (valid CSS)
172
173'',		// CURRENT Custom additional CSS for the items (valid CSS)
174
175''		// VISITED Custom additional CSS for the items (valid CSS)
176
177]];
178
179
180
181
182
183c_styles['SM']=[ // SubMenus
184
185[
186
187// MENU BOX STYLE
188
1891,		// BorderWidth
190
191'solid',	// BorderStyle (CSS valid values except 'none')
192
193'#cccccc',	// BorderColor ('color')
194
1953,		// Padding
196
197'#eeeeee',	// Background ('color','transparent','[image_source]')
198
199'',		// IEfilter (only transition filters work well - not static filters)
200
201''		// Custom additional CSS for the menu box (valid CSS)
202
203],[
204
205// MENU ITEMS STYLE
206
2071,		// BorderWidth
208
209'solid',	// BorderStyle (CSS valid values except 'none')
210
211'solid',	// OVER BorderStyle
212
213'#ffffff',	// BorderColor ('color')
214
215'#4D4C76',	// OVER BorderColor
216
2173,		// Padding
218
219'#eeeeee',	// Background ('color','transparent','[image_source]')
220
221'#ffffff',	// OVER Background
222
223'#001D4F',	// Color
224
225'#333333',	// OVER Color
226
227'12px',		// FontSize (values in CSS valid units - %,em,ex,px,pt)
228
229'Trebuchet MS,verdana,arial,helvetica,sans-serif',	// FontFamily
230
231'normal',	// FontWeight (CSS valid values - 'bold','normal','bolder','lighter','100',...,'900')
232
233'none',		// TextDecoration (CSS valid values - 'none','underline','overline','line-through')
234
235'none',		// OVER TextDecoration
236
237'left',		// TextAlign ('left','center','right','justify')
238
2390,		// ItemsSeparatorSize
240
241'solid',	// ItemsSeparatorStyle (border-style valid values)
242
243'#CBCBEF',	// ItemsSeparatorColor ('color','transparent')
244
2452,		// ItemsSeparatorSpacing
246
247true,			// UseSubMenuImage (true,false)
248
249'[v_arrow.gif]',	// SubMenuImageSource ('[image_source]')
250
251'[v_arrow_over.gif]',	// OverSubMenuImageSource
252
2537,			// SubMenuImageWidth
254
2557,			// SubMenuImageHeight
256
257'7',			// SubMenuImageVAlign ('pixels from item top','middle')
258
259'solid',		// VISITED BorderStyle
260
261'#ffffff',		// VISITED BorderColor
262
263'#eeeeee',		// VISITED Background
264
265'#001D4F',		// VISITED Color
266
267'none',			// VISITED TextDecoration
268
269'[v_arrow.gif]',	// VISITED SubMenuImageSource
270
271'solid',		// CURRENT BorderStyle
272
273'#cccccc',		// CURRENT BorderColor
274
275'#eeeeee',		// CURRENT Background
276
277'#252455',		// CURRENT Color
278
279'none',			// CURRENT TextDecoration
280
281'[v_arrow.gif]',	// CURRENT SubMenuImageSource
282
283'',		// Custom additional CSS for the items (valid CSS)
284
285'',		// OVER Custom additional CSS for the items (valid CSS)
286
287'',		// CURRENT Custom additional CSS for the items (valid CSS)
288
289''		// VISITED Custom additional CSS for the items (valid CSS)
290
291]];
292
293
294
295
296
297
298
299
300
301/******************************************************
302
303	(3) MENU TREE FEATURES
304
305*******************************************************/
306
307
308
309// Normally you would probably have just one menu tree (i.e. one main menu with sub menus).
310
311// But you are actually not limited to just one and you can have as many menu trees as you like.
312
313// Just copy/paste a config block below and configure it for another UL element if you like.
314
315
316
317
318
319c_menus['Menu1']=[ // the UL element with id="Menu1"
320
321[
322
323// MAIN-MENU FEATURES
324
325'vertical',	// ItemsArrangement ('vertical','horizontal')
326
327'relative',	// Position ('relative','absolute','fixed')
328
329'0em',		// X Position (values in CSS valid units- px,em,ex)
330
331'1em',		// Y Position (values in CSS valid units- px,em,ex)
332
333false,		// RightToLeft display of the sub menus
334
335false,		// BottomToTop display of the sub menus
336
3370,		// X SubMenuOffset (pixels)
338
3390,		// Y SubMenuOffset
340
341'10em',		// Width (values in CSS valid units - px,em,ex) (matters for main menu with 'vertical' ItemsArrangement only)
342
343'MM',		// CSS Class (one of the defined in section 2)
344
345false		// Open sub-menus onclick (default is onmouseover)
346
347],[
348
349// SUB-MENUS FEATURES
350
3515,		// X SubMenuOffset (pixels)
352
3531,		// Y SubMenuOffset
354
355'auto',		// Width ('auto',values in CSS valid units - px,em,ex)
356
357'100',		// MinWidth ('pixels') (matters/useful if Width is set 'auto')
358
359'200',		// MaxWidth ('pixels') (matters/useful if Width is set 'auto')
360
361'SM',		// CSS Class (one of the defined in section 2)
362
363false		// Open sub-menus onclick (default is onmouseover)
364
365]];
366
367
368
369c_menus['Menu2']=[ // the UL element with id="Menu2"
370
371[
372
373// MAIN-MENU FEATURES
374
375'vertical',   // ItemsArrangement ('vertical','horizontal')
376
377'relative',     // Position ('relative','absolute','fixed')
378
379'0',          // X Position (values in CSS valid units- px,em,ex)
380
381'1.5em',         // Y Position (values in CSS valid units- px,em,ex)
382
383false,          // RightToLeft display of the sub menus
384
385false,          // BottomToTop display of the sub menus
386
3870,              // X SubMenuOffset (pixels)
388
3890,              // Y SubMenuOffset
390
391'12em',         // Width (values in CSS valid units - px,em,ex) (matters for main menu with 'vertical' ItemsArrangement only)
392
393'MM',           // CSS Class (one of the defined in section 2)
394
395false           // Open sub-menus onclick (default is onmouseover)
396
397],[
398
399// SUB-MENUS FEATURES
400
4015,              // X SubMenuOffset (pixels)
402
4031,              // Y SubMenuOffset
404
405'auto',         // Width ('auto',values in CSS valid units - px,em,ex)
406
407'100',          // MinWidth ('pixels') (matters/useful if Width is set 'auto')
408
409'300',          // MaxWidth ('pixels') (matters/useful if Width is set 'auto')
410
411'SM',           // CSS Class (one of the defined in section 2)
412
413false           // Open sub-menus onclick (default is onmouseover)
414
415]];
416
417
418
419c_menus['Menu3']=[ // the UL element with id="Menu1"
420
421[
422
423// MAIN-MENU FEATURES
424
425'vertical',	// ItemsArrangement ('vertical','horizontal')
426
427'relative',	// Position ('relative','absolute','fixed')
428
429'0em',		// X Position (values in CSS valid units- px,em,ex)
430
431'1em',		// Y Position (values in CSS valid units- px,em,ex)
432
433false,		// RightToLeft display of the sub menus
434
435false,		// BottomToTop display of the sub menus
436
4370,		// X SubMenuOffset (pixels)
438
4390,		// Y SubMenuOffset
440
441'10em',		// Width (values in CSS valid units - px,em,ex) (matters for main menu with 'vertical' ItemsArrangement only)
442
443'MM',		// CSS Class (one of the defined in section 2)
444
445false		// Open sub-menus onclick (default is onmouseover)
446
447],[
448
449// SUB-MENUS FEATURES
450
4515,		// X SubMenuOffset (pixels)
452
4531,		// Y SubMenuOffset
454
455'auto',		// Width ('auto',values in CSS valid units - px,em,ex)
456
457'100',		// MinWidth ('pixels') (matters/useful if Width is set 'auto')
458
459'200',		// MaxWidth ('pixels') (matters/useful if Width is set 'auto')
460
461'SM',		// CSS Class (one of the defined in section 2)
462
463false		// Open sub-menus onclick (default is onmouseover)
464
465]];
466