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

  1.  
  2. // directory of where all the images are
  3. var cmThemeOfficeBase = './ThemeOffice/';
  4.  
  5. // the follow block allows user to re-define theme base directory
  6. // before it is loaded.
  7. try
  8. {
  9.     if (myThemeOfficeBase)
  10.     {
  11.         cmThemeOfficeBase = myThemeOfficeBase;
  12.     }
  13. }
  14. catch (e)
  15. {
  16. }
  17.  
  18. var cmThemeOffice =
  19. {
  20.     prefix:    'ThemeOffice',
  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.     // HTML code to the left of the folder item
  41.     folderLeft: '<img alt="" src="' + cmThemeOfficeBase + 'spacer.gif">',
  42.     // HTML code to the right of the folder item
  43.     folderRight: '<img alt="" src="' + cmThemeOfficeBase + 'arrow.gif">',
  44.     // HTML code to the left of the regular item
  45.     itemLeft: '<img alt="" src="' + cmThemeOfficeBase + 'spacer.gif">',
  46.     // HTML code to the right of the regular item
  47.     itemRight: '<img alt="" src="' + cmThemeOfficeBase + 'blank.gif">',
  48.     // cell spacing for main menu
  49.     mainSpacing: 0,
  50.     // cell spacing for sub menus
  51.     subSpacing: 0,
  52.  
  53.     subMenuHeader: '<div class="ThemeOfficeSubMenuShadow"></div>',
  54.  
  55.     offsetHMainAdjust:    [-1, 0],
  56.     offsetSubAdjust:    [-1, -1]
  57.  
  58.     // rest use default settings
  59. };
  60.  
  61. // for horizontal menu split
  62. var cmThemeOfficeHSplit = [_cmNoClick, '<td class="ThemeOfficeMenuItemLeft"></td><td colspan="2" class="ThemeOfficeMenuSplit"><div class="ThemeOfficeMenuSplit"></div></td>'];
  63. var cmThemeOfficeMainHSplit = [_cmNoClick, '<td class="ThemeOfficeMainItemLeft"></td><td colspan="2" class="ThemeOfficeMenuSplit"><div class="ThemeOfficeMenuSplit"></div></td>'];
  64. var cmThemeOfficeMainVSplit = [_cmNoClick, '|'];
  65.  
  66. /* IE can't do negative margin on tables */
  67. /*@cc_on
  68.     cmThemeOffice.subMenuHeader = '<div class="ThemeOfficeSubMenuShadow" style="background-color: #cccccc; filter: alpha(opacity=35);"></div>';
  69. @*/
  70.