home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Programming / setup.exe / %AppDir% / menubar / ThemeLightGrey / theme.js < prev   
Encoding:
JavaScript  |  2009-12-08  |  2.0 KB  |  68 lines

  1.  
  2. // directory of where all the images are
  3. var cmThemeLightGreyBase = './ThemeLightGrey/';
  4.  
  5. // the follow block allows user to re-define theme base directory
  6. // before it is loaded.
  7. try
  8. {
  9.     if (myThemeLightGreyBase)
  10.     {
  11.         cmThemeLightGreyBase = myThemeLightGreyBase;
  12.     }
  13. }
  14. catch (e)
  15. {
  16. }
  17.  
  18. var cmThemeLightGrey =
  19. {
  20.     prefix:    'ThemeLightGrey',
  21.  
  22.       // HTML code to the left of the folder item
  23.       mainFolderLeft: '',
  24.       // HTML code to the right of the folder item
  25.       mainFolderRight: '',
  26.     // HTML code to the left of the regular item
  27.     mainItemLeft: '',
  28.     // HTML code to the right of the regular item
  29.     mainItemRight: '',
  30.  
  31.     // sub menu display attributes
  32.  
  33.     // HTML code to the left of the folder item
  34.     folderLeft: '',
  35.     // HTML code to the right of the folder item
  36.     folderRight: '',
  37.     // HTML code to the left of the regular item
  38.     itemLeft: '',
  39.     // HTML code to the right of the regular item
  40.     itemRight: '',
  41.     // cell spacing for main menu
  42.     mainSpacing: 0,
  43.     // cell spacing for sub menus
  44.     subSpacing: 0,
  45.  
  46.     subMenuHeader: '<div class="ThemeLightGreySubMenuShadow"></div><div class="ThemeLightGreySubMenuBorder">',
  47.     subMenuFooter: '</div>',
  48.  
  49.     // move the first lvl of vbr submenu up a bit
  50.     offsetVMainAdjust:    [0, -2],
  51.     // also for the other lvls
  52.     offsetSubAdjust:    [0, -2]
  53.  
  54.     // rest use default settings
  55. };
  56.  
  57. // for sub menu horizontal split
  58. var cmThemeLightGreyHSplit = [_cmNoClick, '<td colspan="3" class="ThemeLightGreyMenuSplit"><div class="ThemeLightGreyMenuSplit"></div></td>'];
  59. // for vertical main menu horizontal split
  60. var cmThemeLightGreyMainHSplit = [_cmNoClick, '<td colspan="3" class="ThemeLightGreyMenuSplit"><div class="ThemeLightGreyMenuSplit"></div></td>'];
  61. // for horizontal main menu vertical split
  62. var cmThemeLightGreyMainVSplit = [_cmNoClick, '|'];
  63.  
  64. /* IE can't do negative margin on tables */
  65. /*@cc_on
  66.     cmThemeLightGrey.subMenuHeader = '<div class="ThemeLightGreySubMenuShadow" style="background-color: #aaaaaa;filter: alpha(opacity=50);"></div><div class="ThemeLightGreySubMenuBorder">';
  67. @*/
  68.