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

  1. /*
  2.   edit cmThemeXPBase it must be the root of the theme's images 
  3. */
  4.  
  5. var cmThemeXPBase = '.';
  6.  
  7. // the follow block allows user to re-define theme base directory
  8. // before it is loaded.
  9. try
  10. {
  11.     if (myThemeXPBase)
  12.     {
  13.         cmThemeXPBase = myThemeXPBase;
  14.     }
  15. }
  16. catch (e)
  17. {
  18. }
  19.  
  20. var cmThemeXP =
  21. {
  22.           mainFolderLeft: '<div style="width: 14px; height: 28px" class="themeSpacerDiv" />',
  23.         mainFolderRight: '<div style="width: 11px; height: 28px" class="themeSpacerDiv" />',
  24.         mainItemLeft: '<div style="width: 14px; height: 28px" class="themeSpacerDiv" />',
  25.         mainItemRight: '<div style="width: 11px; height: 28px" class="themeSpacerDiv" />',
  26.         folderLeft: '<div style="width: 25px; height: 25px" class="themeSpacerDiv" />',
  27.         folderRight: '<div style="width: 15px; height: 25px" class="themeSpacerDiv" />',
  28.         itemLeft: '<div style="width: 25px; height: 25px" class="themeSpacerDiv" />',
  29.         itemRight: '<div style="width: 15px; height: 25px" class="themeSpacerDiv" />',
  30.         mainSpacing: 0,
  31.         subSpacing: 0,
  32.         delay: 100
  33. };
  34.  
  35. var cmThemeXPHSplit = [_cmNoClick, '<td  class="ThemeXPMenuSplitLeft"><div></div></td>' +
  36.                                               '<td  class="ThemeXPMenuSplitText"><div></div></td>' +
  37.                                               '<td  class="ThemeXPMenuSplitRight"><div></div></td>'
  38.                                  ];
  39.  
  40. var cmThemeXPMainVSplit = [_cmNoClick, '<div>' +
  41.                             '<table height="30" width="10" ' +
  42.                             ' cellspacing="0"><tr><td class="ThemeXPHorizontalSplit">' +
  43.                            '|</td></tr></table></div>'];
  44.  
  45. var cmThemeXPMainHSplit = [_cmNoClick, '<td  class="ThemeXPMainSplitLeft"><div></div></td>' +
  46.                                               '<td  class="ThemeXPMainSplitText"><div></div></td>' +
  47.                                               '<td  class="ThemeXPMainSplitRight"><div></div></td>'
  48.                                    ];    
  49.  
  50.