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

  1.  
  2. var cmThemeIEBase = './ThemeIE/';
  3.  
  4. // the follow block allows user to re-define theme base directory
  5. // before it is loaded.
  6. try
  7. {
  8.     if (myThemeIEBase)
  9.     {
  10.         cmThemeIEBase = myThemeIEBase;
  11.     }
  12. }
  13. catch (e)
  14. {
  15. }
  16.  
  17. var cmThemeIE =
  18. {
  19.     prefix:    'ThemeIE',
  20.       // main menu display attributes
  21.       //
  22.       // Note.  When the menu bar is horizontal,
  23.       // mainFolderLeft and mainFolderRight are
  24.       // put in <span></span>.  When the menu
  25.       // bar is vertical, they would be put in
  26.       // a separate TD cell.
  27.  
  28.       // HTML code to the left of the folder item
  29.       mainFolderLeft: '',
  30.       // HTML code to the right of the folder item
  31.       mainFolderRight: '',
  32.     // HTML code to the left of the regular item
  33.     mainItemLeft: '',
  34.     // HTML code to the right of the regular item
  35.     mainItemRight: '',
  36.  
  37.     // sub menu display attributes
  38.     // HTML code to the left of the folder item
  39.     folderLeft: '<img alt="" src="' + cmThemeIEBase + 'folder.gif">',
  40.     // HTML code to the right of the folder item
  41.     folderRight: '<img alt="" src="' + cmThemeIEBase + 'arrow.gif" align="top"> ',
  42.     // HTML code to the left of the regular item
  43.     itemLeft: '<img alt="" src="' + cmThemeIEBase + 'link.gif">',
  44.     // HTML code to the right of the regular item
  45.     itemRight: '',
  46.     // cell spacing for main menu
  47.     mainSpacing: 0,
  48.     // cell spacing for sub menus
  49.     subSpacing: 0,
  50.     // auto dispear time for submenus in milli-seconds
  51.     delay: 100,
  52.  
  53.     subMenuHeader: '<div class="ThemeIESubMenuShadow"></div><div class="ThemeIESubMenuBorder">',
  54.     subMenuFooter: '</div>',
  55.  
  56.     // adjust sub menu positions
  57.     offsetSubAdjust:    [-4, -3]
  58.     // rest use default settins
  59. };
  60.  
  61. // horizontal split, used only in sub menus
  62. var cmThemeIEHSplit = [_cmNoClick, '<td colspan="3" class="ThemeIEMenuSplit"><div class="ThemeIEMenuSplit"></div></td>'];
  63. // horizontal split, used only in main menu
  64. var cmThemeIEMainHSplit = [_cmNoClick, '<td colspan="3" class="ThemeIEMenuSplit"><div class="ThemeIEMenuSplit"></div></td>'];
  65. // vertical split, used only in main menu
  66. var cmThemeIEMainVSplit = [_cmNoClick, '<div class="ThemeIEMenuVSplit">|</div>'];
  67.  
  68. /* IE can't do negative margin on tables */
  69. /*@cc_on
  70.     cmThemeIE.subMenuHeader = '<div class="ThemeIESubMenuShadow" style="background-color: #7f7f7f;filter: alpha(opacity=50);"></div><div class="ThemeIESubMenuBorder">';
  71. @*/
  72.