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

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