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

  1.  
  2. // directory of where all the images are
  3. var cmThemeOffice2007Base = './ThemeOffice2007/';
  4.  
  5. // the follow block allows user to re-define theme base directory
  6. // before it is loaded.
  7. try
  8. {
  9.     if (myThemeOffice2007Base)
  10.     {
  11.         cmThemeOffice2007Base = myThemeOffice2007Base;
  12.     }
  13. }
  14. catch (e)
  15. {
  16. }
  17.  
  18. var cmThemeOffice2007 =
  19. {
  20.     prefix:    'ThemeOffice2007',
  21.       // main menu display attributes
  22.       //
  23.       // Note.  When the menu bar is horizontal,
  24.       // mainFolderLeft and mainFolderRight are
  25.       // put in <span></span>.  When the menu
  26.       // bar is vertical, they would be put in
  27.       // a separate TD cell.
  28.  
  29.       // HTML code to the left of the folder item
  30.       mainFolderLeft: ' ',
  31.       // HTML code to the right of the folder item
  32.       mainFolderRight: ' ',
  33.     // HTML code to the left of the regular item
  34.     mainItemLeft: ' ',
  35.     // HTML code to the right of the regular item
  36.     mainItemRight: ' ',
  37.  
  38.     // sub menu display attributes
  39.  
  40.     // 0, HTML code to the left of the folder item
  41.     folderLeft: '<img alt="" src="' + cmThemeOffice2007Base + 'spacer.gif">',
  42.     // 1, HTML code to the right of the folder item
  43.     folderRight: '<img alt="" src="' + cmThemeOffice2007Base + 'arrow.gif">',
  44.     // 2, HTML code to the left of the regular item
  45.     itemLeft: '<img alt="" src="' + cmThemeOffice2007Base + 'spacer.gif">',
  46.     // 3, HTML code to the right of the regular item
  47.     itemRight: '<img alt="" src="' + cmThemeOffice2007Base + 'blank.gif">',
  48.     // 4, cell spacing for main menu
  49.     mainSpacing: 0,
  50.     // 5, cell spacing for sub menus
  51.     subSpacing: 0,
  52.  
  53.     // move 1st lvl submenu for horizontal menus up a bit to avoid double border
  54.     offsetHMainAdjust:    [0, -1],
  55.     offsetVMainAdjust:    [-1, 0],
  56.     // offset according to Opera, which is correct.
  57.     offsetSubAdjust:    [1, 0]
  58.     // rest use default settings
  59. };
  60.  
  61. // for horizontal menu split
  62. var cmThemeOffice2007HSplit = [_cmNoClick, '<td class="ThemeOffice2007MenuItemLeft"></td><td colspan="2"><div class="ThemeOffice2007MenuSplit"></div></td>'];
  63. var cmThemeOffice2007MainHSplit = [_cmNoClick, '<td class="ThemeOffice2007MainItemLeft"></td><td colspan="2"><div class="ThemeOffice2007MenuSplit"></div></td>'];
  64. var cmThemeOffice2007MainVSplit = [_cmNoClick, '|'];
  65.