PageRenderTime 52ms CodeModel.GetById 33ms RepoModel.GetById 1ms 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
Possible License(s): GPL-2.0, LGPL-2.1, AGPL-3.0
  1. // USE WORDWRAP AND MAXIMIZE THE WINDOW TO SEE THIS FILE
  2. c_styles={};c_menus={}; // do not remove this line
  3. // You can remove most comments from this file to reduce the size if you like.
  4. /******************************************************
  5. (1) GLOBAL SETTINGS
  6. *******************************************************/
  7. c_hideTimeout=500; // 1000==1 second
  8. c_subShowTimeout=100;
  9. c_keepHighlighted=true;
  10. c_findCURRENT=false; // find the item linking to the current page and apply it the CURRENT style class
  11. c_findCURRENTTree=true;
  12. c_overlapControlsInIE=true;
  13. c_rightToLeft=false; // if the menu text should have "rtl" direction (e.g. Hebrew, Arabic)
  14. /******************************************************
  15. (2) MENU STYLES (CSS CLASSES)
  16. *******************************************************/
  17. // You can define different style classes here and then assign them globally to the menu tree(s)
  18. // in section 3 below or set them to any UL element from your menu tree(s) in the page source
  19. c_imagesPath="smartmenus/"; // path to the directory containing the menu images
  20. c_styles['MM']=[ // MainMenu (the shorter the class name the better)
  21. [
  22. // MENU BOX STYLE
  23. 1, // BorderWidth
  24. 'solid', // BorderStyle (CSS valid values except 'none')
  25. '#4D4C76', // BorderColor ('color')
  26. 1, // Padding
  27. '#eeeeee', // Background ('color','transparent','[image_source]')
  28. '', // IEfilter (only transition filters work well - not static filters)
  29. '' // Custom additional CSS for the menu box (valid CSS)
  30. ],[
  31. // MENU ITEMS STYLE
  32. 1, // BorderWidth
  33. 'solid', // BorderStyle (CSS valid values except 'none')
  34. 'solid', // OVER BorderStyle
  35. '#cccccc', // BorderColor ('color')
  36. '#cccccc', // OVER BorderColor
  37. 4, // Padding
  38. '#eeeeee', // Background ('color','transparent','[image_source]')
  39. '#ffffff', // OVER Background
  40. '#001D4F', // Color
  41. '#001D4F', // OVER Color
  42. '12px', // FontSize (values in CSS valid units - %,em,ex,px,pt)
  43. 'Trebuchet MS,verdana,arial,helvetica,sans-serif', // FontFamily
  44. 'normal', // FontWeight (CSS valid values - 'bold','normal','bolder','lighter','100',...,'900')
  45. 'none', // TextDecoration (CSS valid values - 'none','underline','overline','line-through')
  46. 'underline', // OVER TextDecoration
  47. 'left', // TextAlign ('left','center','right','justify')
  48. 1, // ItemsSeparatorSize
  49. 'solid', // ItemsSeparatorStyle (border-style valid values)
  50. '#eeeeee', // ItemsSeparatorColor ('color','transparent')
  51. 1, // ItemsSeparatorSpacing
  52. false, // UseSubMenuImage (true,false)
  53. '[h_arrow.gif]', // SubMenuImageSource ('[image_source]')
  54. '[h_arrow_over.gif]', // OverSubMenuImageSource
  55. 7, // SubMenuImageWidth
  56. 4, // SubMenuImageHeight
  57. '10', // SubMenuImageVAlign ('pixels from item top','middle')
  58. 'solid', // VISITED BorderStyle
  59. '#cccccc', // VISITED BorderColor
  60. '#eeeeee', // VISITED Background
  61. '#001D4F', // VISITED Color
  62. 'none', // VISITED TextDecoration
  63. '[h_arrow.gif]', // VISITED SubMenuImageSource
  64. 'solid', // CURRENT BorderStyle
  65. '#cccccc', // CURRENT BorderColor
  66. '#eeeeee', // CURRENT Background
  67. '#001D4F', // CURRENT Color
  68. 'none', // CURRENT TextDecoration
  69. '[h_arrow.gif]', // CURRENT SubMenuImageSource
  70. '', // Custom additional CSS for the items (valid CSS)
  71. '', // OVER Custom additional CSS for the items (valid CSS)
  72. '', // CURRENT Custom additional CSS for the items (valid CSS)
  73. '' // VISITED Custom additional CSS for the items (valid CSS)
  74. ]];
  75. c_styles['SM']=[ // SubMenus
  76. [
  77. // MENU BOX STYLE
  78. 1, // BorderWidth
  79. 'solid', // BorderStyle (CSS valid values except 'none')
  80. '#cccccc', // BorderColor ('color')
  81. 3, // Padding
  82. '#eeeeee', // Background ('color','transparent','[image_source]')
  83. '', // IEfilter (only transition filters work well - not static filters)
  84. '' // Custom additional CSS for the menu box (valid CSS)
  85. ],[
  86. // MENU ITEMS STYLE
  87. 1, // BorderWidth
  88. 'solid', // BorderStyle (CSS valid values except 'none')
  89. 'solid', // OVER BorderStyle
  90. '#ffffff', // BorderColor ('color')
  91. '#4D4C76', // OVER BorderColor
  92. 3, // Padding
  93. '#eeeeee', // Background ('color','transparent','[image_source]')
  94. '#ffffff', // OVER Background
  95. '#001D4F', // Color
  96. '#333333', // OVER Color
  97. '12px', // FontSize (values in CSS valid units - %,em,ex,px,pt)
  98. 'Trebuchet MS,verdana,arial,helvetica,sans-serif', // FontFamily
  99. 'normal', // FontWeight (CSS valid values - 'bold','normal','bolder','lighter','100',...,'900')
  100. 'none', // TextDecoration (CSS valid values - 'none','underline','overline','line-through')
  101. 'none', // OVER TextDecoration
  102. 'left', // TextAlign ('left','center','right','justify')
  103. 0, // ItemsSeparatorSize
  104. 'solid', // ItemsSeparatorStyle (border-style valid values)
  105. '#CBCBEF', // ItemsSeparatorColor ('color','transparent')
  106. 2, // ItemsSeparatorSpacing
  107. true, // UseSubMenuImage (true,false)
  108. '[v_arrow.gif]', // SubMenuImageSource ('[image_source]')
  109. '[v_arrow_over.gif]', // OverSubMenuImageSource
  110. 7, // SubMenuImageWidth
  111. 7, // SubMenuImageHeight
  112. '7', // SubMenuImageVAlign ('pixels from item top','middle')
  113. 'solid', // VISITED BorderStyle
  114. '#ffffff', // VISITED BorderColor
  115. '#eeeeee', // VISITED Background
  116. '#001D4F', // VISITED Color
  117. 'none', // VISITED TextDecoration
  118. '[v_arrow.gif]', // VISITED SubMenuImageSource
  119. 'solid', // CURRENT BorderStyle
  120. '#cccccc', // CURRENT BorderColor
  121. '#eeeeee', // CURRENT Background
  122. '#252455', // CURRENT Color
  123. 'none', // CURRENT TextDecoration
  124. '[v_arrow.gif]', // CURRENT SubMenuImageSource
  125. '', // Custom additional CSS for the items (valid CSS)
  126. '', // OVER Custom additional CSS for the items (valid CSS)
  127. '', // CURRENT Custom additional CSS for the items (valid CSS)
  128. '' // VISITED Custom additional CSS for the items (valid CSS)
  129. ]];
  130. /******************************************************
  131. (3) MENU TREE FEATURES
  132. *******************************************************/
  133. // Normally you would probably have just one menu tree (i.e. one main menu with sub menus).
  134. // But you are actually not limited to just one and you can have as many menu trees as you like.
  135. // Just copy/paste a config block below and configure it for another UL element if you like.
  136. c_menus['Menu1']=[ // the UL element with id="Menu1"
  137. [
  138. // MAIN-MENU FEATURES
  139. 'vertical', // ItemsArrangement ('vertical','horizontal')
  140. 'relative', // Position ('relative','absolute','fixed')
  141. '0em', // X Position (values in CSS valid units- px,em,ex)
  142. '1em', // Y Position (values in CSS valid units- px,em,ex)
  143. false, // RightToLeft display of the sub menus
  144. false, // BottomToTop display of the sub menus
  145. 0, // X SubMenuOffset (pixels)
  146. 0, // Y SubMenuOffset
  147. '10em', // Width (values in CSS valid units - px,em,ex) (matters for main menu with 'vertical' ItemsArrangement only)
  148. 'MM', // CSS Class (one of the defined in section 2)
  149. false // Open sub-menus onclick (default is onmouseover)
  150. ],[
  151. // SUB-MENUS FEATURES
  152. 5, // X SubMenuOffset (pixels)
  153. 1, // Y SubMenuOffset
  154. 'auto', // Width ('auto',values in CSS valid units - px,em,ex)
  155. '100', // MinWidth ('pixels') (matters/useful if Width is set 'auto')
  156. '200', // MaxWidth ('pixels') (matters/useful if Width is set 'auto')
  157. 'SM', // CSS Class (one of the defined in section 2)
  158. false // Open sub-menus onclick (default is onmouseover)
  159. ]];
  160. c_menus['Menu2']=[ // the UL element with id="Menu2"
  161. [
  162. // MAIN-MENU FEATURES
  163. 'vertical', // ItemsArrangement ('vertical','horizontal')
  164. 'relative', // Position ('relative','absolute','fixed')
  165. '0', // X Position (values in CSS valid units- px,em,ex)
  166. '1.5em', // Y Position (values in CSS valid units- px,em,ex)
  167. false, // RightToLeft display of the sub menus
  168. false, // BottomToTop display of the sub menus
  169. 0, // X SubMenuOffset (pixels)
  170. 0, // Y SubMenuOffset
  171. '12em', // Width (values in CSS valid units - px,em,ex) (matters for main menu with 'vertical' ItemsArrangement only)
  172. 'MM', // CSS Class (one of the defined in section 2)
  173. false // Open sub-menus onclick (default is onmouseover)
  174. ],[
  175. // SUB-MENUS FEATURES
  176. 5, // X SubMenuOffset (pixels)
  177. 1, // Y SubMenuOffset
  178. 'auto', // Width ('auto',values in CSS valid units - px,em,ex)
  179. '100', // MinWidth ('pixels') (matters/useful if Width is set 'auto')
  180. '300', // MaxWidth ('pixels') (matters/useful if Width is set 'auto')
  181. 'SM', // CSS Class (one of the defined in section 2)
  182. false // Open sub-menus onclick (default is onmouseover)
  183. ]];
  184. c_menus['Menu3']=[ // the UL element with id="Menu1"
  185. [
  186. // MAIN-MENU FEATURES
  187. 'vertical', // ItemsArrangement ('vertical','horizontal')
  188. 'relative', // Position ('relative','absolute','fixed')
  189. '0em', // X Position (values in CSS valid units- px,em,ex)
  190. '1em', // Y Position (values in CSS valid units- px,em,ex)
  191. false, // RightToLeft display of the sub menus
  192. false, // BottomToTop display of the sub menus
  193. 0, // X SubMenuOffset (pixels)
  194. 0, // Y SubMenuOffset
  195. '10em', // Width (values in CSS valid units - px,em,ex) (matters for main menu with 'vertical' ItemsArrangement only)
  196. 'MM', // CSS Class (one of the defined in section 2)
  197. false // Open sub-menus onclick (default is onmouseover)
  198. ],[
  199. // SUB-MENUS FEATURES
  200. 5, // X SubMenuOffset (pixels)
  201. 1, // Y SubMenuOffset
  202. 'auto', // Width ('auto',values in CSS valid units - px,em,ex)
  203. '100', // MinWidth ('pixels') (matters/useful if Width is set 'auto')
  204. '200', // MaxWidth ('pixels') (matters/useful if Width is set 'auto')
  205. 'SM', // CSS Class (one of the defined in section 2)
  206. false // Open sub-menus onclick (default is onmouseover)
  207. ]];