|
From: Jon O. <jon...@us...> - 2007-06-19 18:31:13
|
Update of /cvsroot/mxbb/core/modules/mx_navmenu/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13496/templates/subSilver Modified Files: mx_menu_advanced_CSS_hor.tpl mx_menu_advanced_CSS_ver.tpl mx_menu_advanced_hor.tpl mx_menu_advanced_ver.tpl mx_menu_simple_CSS_hor.tpl mx_menu_simple_CSS_ver.tpl Log Message: The navigation menu is updated, to support also IE New core methods for adding header and footer text/files Index: mx_menu_advanced_hor.tpl =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_navmenu/templates/subSilver/mx_menu_advanced_hor.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mx_menu_advanced_hor.tpl 29 May 2006 15:37:04 -0000 1.2 --- mx_menu_advanced_hor.tpl 19 Jun 2007 18:31:00 -0000 1.3 *************** *** 13,19 **** font-family: {T_FONTFACE1}; padding: 6px 21px; ! border-width: 0px; ! border-color: {T_TH_COLOR1}; ! border-style: solid solid solid solid; cursor: default; position: relative; --- 13,18 ---- font-family: {T_FONTFACE1}; padding: 6px 21px; ! border: 1px {T_TH_COLOR1}; ! border-style: solid solid solid solid; cursor: default; position: relative; *************** *** 28,34 **** font-family: {T_FONTFACE1}; padding: 6px 21px; ! border-width: 0px; ! border-color: {T_TH_COLOR1}; ! border-style: solid solid solid solid; cursor: default; position: relative; --- 27,32 ---- font-family: {T_FONTFACE1}; padding: 6px 21px; ! border: 1px {T_TH_COLOR1}; ! border-style: solid solid solid solid; cursor: default; position: relative; *************** *** 43,49 **** font-family: {T_FONTFACE1}; padding: 6px 21px; ! border-width: 0px; ! border-color: {T_TH_COLOR1}; ! border-style: solid solid none solid; cursor: default; position: relative; --- 41,46 ---- font-family: {T_FONTFACE1}; padding: 6px 21px; ! border: 1px {T_TH_COLOR1}; ! border-style: solid solid solid solid; cursor: default; position: relative; *************** *** 58,64 **** font-family: {T_FONTFACE1}; padding: 6px 21px; ! border-width: 0px; ! border-color: {T_TH_COLOR1}; ! border-style: solid solid none solid; cursor: default; position: relative; --- 55,60 ---- font-family: {T_FONTFACE1}; padding: 6px 21px; ! border: 1px {T_TH_COLOR1}; ! border-style: solid solid solid solid; cursor: default; position: relative; *************** *** 70,81 **** } .click-menu .section { ! background-color: {T_TR_COLOR1}; font-family: {T_FONTFACE1}; font-size: 12px; line-height: 15px; padding: 5px 5px 6px 5px; ! border-width: 0px; ! border-color: {T_TH_COLOR1}; ! border-style: none solid solid solid; display: none; } --- 66,76 ---- } .click-menu .section { ! background: {T_TR_COLOR1}; font-family: {T_FONTFACE1}; font-size: 12px; line-height: 15px; padding: 5px 5px 6px 5px; ! border: 0px {T_TH_COLOR1}; ! border-style: none solid solid solid; display: none; } *************** *** 107,120 **** <table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <tr> ! <td align="left"> ! ! <table cellspacing="0" cellpadding="0" id="click-menu{MENU_ID}" class="click-menu"> ! <tr> <!-- BEGIN catrow --> ! <td class="row1" align="left" width="{CAT_WIDTH}" valign="top"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> ! <td class="cat" style="border:none;"> <div class="box1"><span class="nav"> {catrow.CATEGORY}</span></div> </td> --- 102,113 ---- <table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <tr> ! <td align="left" class="row1"> ! <table cellspacing="1" cellpadding="0" id="click-menu{MENU_ID}" class="click-menu"> <tr> <!-- BEGIN catrow --> ! <td align="left" width="{CAT_WIDTH}" valign="top"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> ! <td style="border:none;"> <div class="box1"><span class="nav"> {catrow.CATEGORY}</span></div> </td> *************** *** 126,153 **** <!-- END modulerow --> </div> - </td> <!-- END catrow --> </tr> - </table> - </td> </tr> ! </table> ! ! <!-- ! this.box1Hover = true; ! this.box2Hover = true; ! this.highlightActive = false; ! --> ! ! <script type="text/javascript"> ! var clickMenu1 = new ClickShowHideMenu('click-menu' + '{MENU_ID}'); ! clickMenu1.box1Hover = true; ! clickMenu1.box2Hover = true; ! clickMenu1.highlightActive = false; ! //clickMenu1.init_id = 0; // Initiate menu ! clickMenu1.init(); ! ! </script> \ No newline at end of file --- 119,127 ---- <!-- END modulerow --> </div> </td> <!-- END catrow --> </tr> </table> </td> </tr> ! </table> \ No newline at end of file Index: mx_menu_advanced_ver.tpl =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_navmenu/templates/subSilver/mx_menu_advanced_ver.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mx_menu_advanced_ver.tpl 29 May 2006 15:37:04 -0000 1.2 --- mx_menu_advanced_ver.tpl 19 Jun 2007 18:31:01 -0000 1.3 *************** *** 13,19 **** font-family: {T_FONTFACE1}; padding: 6px 21px; ! border-width: 0px; ! border-color: {T_TH_COLOR1}; ! border-style: solid solid solid solid; cursor: default; position: relative; --- 13,18 ---- font-family: {T_FONTFACE1}; padding: 6px 21px; ! border: 1px {T_TH_COLOR1}; ! border-style: solid solid solid solid; cursor: default; position: relative; *************** *** 28,34 **** font-family: {T_FONTFACE1}; padding: 6px 21px; ! border-width: 0px; ! border-color: {T_TH_COLOR1}; ! border-style: solid solid solid solid; cursor: default; position: relative; --- 27,32 ---- font-family: {T_FONTFACE1}; padding: 6px 21px; ! border: 1px {T_TH_COLOR1}; ! border-style: solid solid solid solid; cursor: default; position: relative; *************** *** 43,49 **** font-family: {T_FONTFACE1}; padding: 6px 21px; ! border-width: 0px; ! border-color: {T_TH_COLOR1}; ! border-style: solid solid none solid; cursor: default; position: relative; --- 41,46 ---- font-family: {T_FONTFACE1}; padding: 6px 21px; ! border: 1px {T_TH_COLOR1}; ! border-style: solid solid solid solid; cursor: default; position: relative; *************** *** 58,64 **** font-family: {T_FONTFACE1}; padding: 6px 21px; ! border-width: 0px; ! border-color: {T_TH_COLOR1}; ! border-style: solid solid none solid; cursor: default; position: relative; --- 55,60 ---- font-family: {T_FONTFACE1}; padding: 6px 21px; ! border: 1px {T_TH_COLOR1}; ! border-style: solid solid solid solid; cursor: default; position: relative; *************** *** 70,81 **** } .click-menu .section { ! background-color: {T_TR_COLOR1}; font-family: {T_FONTFACE1}; font-size: 12px; line-height: 15px; padding: 5px 5px 6px 5px; ! border-width: 0px; ! border-color: {T_TH_COLOR1}; ! border-style: none solid solid solid; display: none; } --- 66,76 ---- } .click-menu .section { ! background: {T_TR_COLOR1}; font-family: {T_FONTFACE1}; font-size: 12px; line-height: 15px; padding: 5px 5px 6px 5px; ! border: 0px {T_TH_COLOR1}; ! border-style: none solid solid solid; display: none; } *************** *** 107,119 **** <table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <tr> ! <td align="center"> ! ! <table width="100%" cellspacing="0" cellpadding="0" id="click-menu{MENU_ID}" class="click-menu"> <!-- BEGIN catrow --> <tr> ! <td class="row1" align="left"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> ! <td class="cat" style="border:none;"> <div class="box1"><span class="nav"> {catrow.CATEGORY}</span></div> </td> --- 102,113 ---- <table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <tr> ! <td align="center" class="row1"> ! <table width="100%" cellspacing="1" cellpadding="0" id="click-menu{MENU_ID}" class="click-menu"> <!-- BEGIN catrow --> <tr> ! <td align="left"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> ! <td style="border:none;"> <div class="box1"><span class="nav"> {catrow.CATEGORY}</span></div> </td> *************** *** 125,151 **** <!-- END modulerow --> </div> - </td> </tr> <!-- END catrow --> </table> - </td> </tr> ! </table> ! ! <!-- ! this.box1Hover = true; ! this.box2Hover = true; ! this.highlightActive = false; ! --> ! ! <script type="text/javascript"> ! var clickMenu1 = new ClickShowHideMenu('click-menu' + '{MENU_ID}'); ! clickMenu1.box1Hover = true; ! clickMenu1.box2Hover = true; ! clickMenu1.highlightActive = false; ! //clickMenu1.init_id = 0; // Initiate menu ! clickMenu1.init(); ! ! </script> \ No newline at end of file --- 119,127 ---- <!-- END modulerow --> </div> </td> </tr> <!-- END catrow --> </table> </td> </tr> ! </table> \ No newline at end of file Index: mx_menu_simple_CSS_hor.tpl =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_navmenu/templates/subSilver/mx_menu_simple_CSS_hor.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_menu_simple_CSS_hor.tpl 10 Dec 2006 18:50:01 -0000 1.1 --- mx_menu_simple_CSS_hor.tpl 19 Jun 2007 18:31:01 -0000 1.2 *************** *** 8,19 **** .ddm1 .item1-active, .ddm1 .item1-active:hover { ! padding: 3px 8px 4px 8px; text-decoration: none; display: block; position: relative; } .ddm1 .item1 { color: {T_BODY_LINK}; ! border: 1px {T_TR_COLOR2}; } .ddm1 .item1:hover, --- 8,23 ---- .ddm1 .item1-active, .ddm1 .item1-active:hover { ! background: {T_TR_COLOR1}; ! padding: 5px 6px 5px 6px; text-decoration: none; display: block; position: relative; + white-space: nowrap; } .ddm1 .item1 { + text-align: left; color: {T_BODY_LINK}; ! border: 1px {T_TR_COLOR1}; ! border-style: solid solid solid solid; } .ddm1 .item1:hover, *************** *** 27,36 **** .ddm1 .item2, .ddm1 .item2:hover { ! padding: 3px 8px 4px 8px; text-decoration: none; display: block; white-space: nowrap; } .ddm1 .item2 { color: {T_BODY_LINK}; } --- 31,44 ---- .ddm1 .item2, .ddm1 .item2:hover { ! background: {T_TR_COLOR1}; ! padding: 5px 6px 5px 6px; text-decoration: none; display: block; white-space: nowrap; + border: 1px {T_TR_COLOR1}; + border-style: solid solid solid solid; } .ddm1 .item2 { + text-align: left; color: {T_BODY_LINK}; } *************** *** 38,41 **** --- 46,51 ---- background: {T_TR_COLOR2}; color: {T_BODY_VLINK}; + border: 1px {T_TH_COLOR1}; + border-style: solid solid solid solid; } .ddm1 .section { *************** *** 60,64 **** <table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <tr> ! <td align="left"> <table cellspacing="0" cellpadding="0" id="menu{MENU_ID}" class="ddm1"> --- 70,74 ---- <table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <tr> ! <td align="left" class="row1"> <table cellspacing="0" cellpadding="0" id="menu{MENU_ID}" class="ddm1"> *************** *** 69,73 **** <div class="section"> <!-- BEGIN modulerow --> ! {catrow.modulerow.U_MENU_ICON}<a class="item2" href="{catrow.modulerow.U_MENU_MODULE}" target="{catrow.modulerow.U_LINK_TARGET}">{catrow.modulerow.MENU_NAME}</a> <!-- END modulerow --> </div> --- 79,83 ---- <div class="section"> <!-- BEGIN modulerow --> ! <a class="item2" href="{catrow.modulerow.U_MENU_MODULE}" target="{catrow.modulerow.U_LINK_TARGET}">{catrow.modulerow.U_MENU_ICON} {catrow.modulerow.MENU_NAME}</a> <!-- END modulerow --> </div> *************** *** 79,123 **** </td> </tr> ! </table> ! ! <!-- ! /* Type of the menu: "horizontal" or "vertical" */ ! this.type = "horizontal"; ! ! /* Delay (in miliseconds >= 0): show-hide menu */ ! this.delay = { ! "show": 0, ! "hide": 300 ! } ! /* Change the default position of sub-menu by Y pixels from top and X pixels from left ! * Negative values are allowed */ ! this.position = { ! "top": 0, ! "left": 0 ! } ! /* Z-index property for .section */ ! this.zIndex = { ! "visible": 1, ! "hidden": -1 ! }; ! ! // Browser detection ! this.browser = { ! "ie": Boolean(document.body.currentStyle), ! "ie5": (navigator.appVersion.indexOf("MSIE 5.5") != -1 || navigator.appVersion.indexOf("MSIE 5.0") != -1) ! }; ! if (!this.browser.ie) { this.browser.ie5 = false; } ! --> ! ! <script type="text/javascript"> ! <!-- ! var ddm1 = new DropDownMenu1('menu' + '{MENU_ID}'); ! ddm1.type = "horizontal"; ! ddm1.delay.show = 0; ! ddm1.delay.hide = 100; ! ddm1.position.top = 1; ! ddm1.position.left = 0; ! ddm1.init(); ! ! //--> ! </script> \ No newline at end of file --- 89,91 ---- </td> </tr> ! </table> \ No newline at end of file Index: mx_menu_simple_CSS_ver.tpl =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_navmenu/templates/subSilver/mx_menu_simple_CSS_ver.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_menu_simple_CSS_ver.tpl 10 Dec 2006 18:50:01 -0000 1.1 --- mx_menu_simple_CSS_ver.tpl 19 Jun 2007 18:31:01 -0000 1.2 *************** *** 8,12 **** .ddm1 .item1-active, .ddm1 .item1-active:hover { ! padding: 3px 8px 4px 8px; text-decoration: none; display: block; --- 8,13 ---- .ddm1 .item1-active, .ddm1 .item1-active:hover { ! background: {T_TR_COLOR1}; ! padding: 5px 6px 5px 6px; text-decoration: none; display: block; *************** *** 15,20 **** } .ddm1 .item1 { color: {T_BODY_LINK}; ! border: 1px {T_TR_COLOR2}; } .ddm1 .item1:hover, --- 16,23 ---- } .ddm1 .item1 { + text-align: left; color: {T_BODY_LINK}; ! border: 1px {T_TR_COLOR1}; ! border-style: solid solid solid solid; } .ddm1 .item1:hover, *************** *** 35,45 **** .ddm1 .item2, .ddm1 .item2:hover { ! padding: 3px 8px 4px 8px; text-decoration: none; display: block; white-space: nowrap; ! border: 1px {T_TR_COLOR2}; } .ddm1 .item2 { color: {T_BODY_LINK}; } --- 38,51 ---- .ddm1 .item2, .ddm1 .item2:hover { ! background: {T_TR_COLOR1}; ! padding: 5px 6px 5px 6px; text-decoration: none; display: block; white-space: nowrap; ! border: 1px {T_TR_COLOR1}; ! border-style: solid solid solid solid; } .ddm1 .item2 { + text-align: left; color: {T_BODY_LINK}; } *************** *** 72,76 **** <table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <tr> ! <td align="center"> <table width="100%" cellspacing="0" cellpadding="0" id="menu{MENU_ID}" class="ddm1"> --- 78,82 ---- <table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <tr> ! <td align="center" class="row1"> <table width="100%" cellspacing="0" cellpadding="0" id="menu{MENU_ID}" class="ddm1"> *************** *** 91,135 **** </td> </tr> ! </table> ! ! <!-- ! /* Type of the menu: "horizontal" or "vertical" */ ! this.type = "horizontal"; ! ! /* Delay (in miliseconds >= 0): show-hide menu */ ! this.delay = { ! "show": 0, ! "hide": 300 ! } ! /* Change the default position of sub-menu by Y pixels from top and X pixels from left ! * Negative values are allowed */ ! this.position = { ! "top": 0, ! "left": 0 ! } ! /* Z-index property for .section */ ! this.zIndex = { ! "visible": 1, ! "hidden": -1 ! }; ! ! // Browser detection ! this.browser = { ! "ie": Boolean(document.body.currentStyle), ! "ie5": (navigator.appVersion.indexOf("MSIE 5.5") != -1 || navigator.appVersion.indexOf("MSIE 5.0") != -1) ! }; ! if (!this.browser.ie) { this.browser.ie5 = false; } ! --> ! ! <script type="text/javascript"> ! <!-- ! var ddm1 = new DropDownMenu1('menu' + '{MENU_ID}'); ! ddm1.type = "vertical"; ! ddm1.delay.show = 0; ! ddm1.delay.hide = 100; ! ddm1.position.top = 0; ! ddm1.position.left = 5; ! ddm1.init(); ! ! //--> ! </script> \ No newline at end of file --- 97,99 ---- </td> </tr> ! </table> \ No newline at end of file Index: mx_menu_advanced_CSS_ver.tpl =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_navmenu/templates/subSilver/mx_menu_advanced_CSS_ver.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_menu_advanced_CSS_ver.tpl 10 Dec 2006 18:50:01 -0000 1.1 --- mx_menu_advanced_CSS_ver.tpl 19 Jun 2007 18:31:00 -0000 1.2 *************** *** 1,4 **** --- 1,12 ---- + <script type="text/javascript" src="{MX_ROOT_PATH}modules/mx_shared/mygosumenu/ie5.js"></script> + <script type="text/javascript" src="{MX_ROOT_PATH}modules/mx_shared/mygosumenu/1.4/XulMenu.js"></script> + <style type="text/css"> <!-- + #bar { + background: #{T_TR_COLOR1}; + cursor: default; + } + .XulMenu { font-family: {T_FONTFACE1}; *************** *** 10,13 **** --- 18,22 ---- .XulMenu .button-active, .XulMenu .button-active:hover { + text-align: left; line-height: normal; padding: 5px 6px 4px 6px; *************** *** 31,35 **** position: absolute; top: 4px; ! right: 1px; border: 0; } --- 40,44 ---- position: absolute; top: 4px; ! right: 2px; border: 0; } *************** *** 40,45 **** --- 49,57 ---- background: {T_TR_COLOR1}; line-height: normal; + text-align: left; padding: 3px 20px 3px 20px; color: #000000; + border: 1px {T_TR_COLOR1}; + border-style: solid solid solid solid; text-decoration: none; cursor: default; *************** *** 53,61 **** background: {T_TR_COLOR2}; color: {T_FONTFACE1}; } .XulMenu .section { background: {T_TR_COLOR1}; ! border: 1px solid; ! border-color: #F1EFE2 #716F64 #716F64 #F1EFE2; padding: 2px 1px 1px 2px; position: absolute; --- 65,75 ---- background: {T_TR_COLOR2}; color: {T_FONTFACE1}; + border: 1px {T_TH_COLOR1}; + border-style: solid solid solid solid; } .XulMenu .section { background: {T_TR_COLOR1}; ! border: 1px {T_TH_COLOR1}; ! border-style: solid solid solid solid; padding: 2px 1px 1px 2px; position: absolute; *************** *** 74,91 **** </style> ! <script type="text/javascript" src="{MX_ROOT_PATH}modules/mx_shared/mygosumenu/ie5.js"></script> ! <script type="text/javascript" src="{MX_ROOT_PATH}modules/mx_shared/mygosumenu/1.4/XulMenu.js"></script> ! ! <div id="bar"> ! <table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <tr> ! <td align="center"> ! <table width="100%" cellspacing="0" cellpadding="0" id="menu{MENU_ID}" class="XulMenu"> <!-- BEGIN catrow --> <tr> - <td> ! <a class="button" href="javascript:void(0)">{catrow.CATEGORY_NAME}<img src="{MX_ROOT_PATH}modules/mx_navmenu/templates/subSilver/images/arrow_right.gif" width="10" height="12" alt="" /></a> <div class="section"> <!-- BEGIN modulerow --> --- 88,100 ---- </style> ! <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <tr> ! <td align="center" class="row1"> ! <div id="bar"> <table width="100%" cellspacing="0" cellpadding="0" id="menu{MENU_ID}" class="XulMenu"> <!-- BEGIN catrow --> <tr> <td> ! <a class="button" href="javascript:void(0)">{catrow.CATEGORY_NAME}<img class="arrow" src="{MX_ROOT_PATH}modules/mx_navmenu/templates/subSilver/images/arrow_right.gif" width="10" height="12" alt="" /></a> <div class="section"> <!-- BEGIN modulerow --> *************** *** 94,161 **** </div> </td> - </tr> <!-- END catrow --> </table> ! </td> </tr> ! </table> ! </div> ! ! <!-- ! Example of initializing: ! var menu = new XulMenu("id_of_the_menu"); ! menu.init(); ! ! Example of initializing and setting additional stuff: ! var menu1 = new XulMenu("menu1"); ! menu1.type = "horizontal"; ! menu1.position.level1.top = 0; ! menu1.position.level1.left = 0; ! menu1.position.levelX.top = 0; ! menu1.position.levelX.left = 0; ! menu1.arrow1 = "images/arrow.gif"; ! menu1.arrow2 = "images/arrow-active.gif"; ! ! Note: ! arrow1 & arrow2 set only when you want the arrow image to change when ! element is active. If you don't want the arrow to change keep both variables empty. ! ! ---------------- ! API ! ---------------- ! ! Controlling the menu: ! ! show(id) ! hide(id) ! hideAll() ! hideHigherOrEqualLevels(n) ! ! id = id of the element ! n = level ! ! examples: ! ! 1) ! menu1.show("menu1-1"); ! ! 2) ! menu1.show("menu1-1"); ! menu1.show("menu1-1-2"); ! menu1.show("menu1-1-2-0"); ! menu1.hideHigherOrEqualLevels(2); ! ! Both examples show the same. ! --> ! ! <script type="text/javascript"> ! var menu1 = new XulMenu('menu' + '{MENU_ID}'); ! menu1.type = "vertical"; ! menu1.arrow1 = "images/arrow1.gif"; ! menu1.arrow2 = "images/arrow2.gif"; ! menu1.position.level1.top = 0; ! menu1.position.level1.left = 0; ! menu1.init(); ! </script> \ No newline at end of file --- 103,111 ---- </div> </td> </tr> <!-- END catrow --> </table> ! </div> </td> </tr> ! </table> \ No newline at end of file Index: mx_menu_advanced_CSS_hor.tpl =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_navmenu/templates/subSilver/mx_menu_advanced_CSS_hor.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_menu_advanced_CSS_hor.tpl 10 Dec 2006 18:50:01 -0000 1.1 --- mx_menu_advanced_CSS_hor.tpl 19 Jun 2007 18:31:00 -0000 1.2 *************** *** 1,4 **** --- 1,9 ---- <style type="text/css"> <!-- + #bar { + background: #{T_TR_COLOR1}; + cursor: default; + } + .XulMenu { font-family: {T_FONTFACE1}; *************** *** 10,13 **** --- 15,19 ---- .XulMenu .button-active, .XulMenu .button-active:hover { + text-align: left; line-height: normal; padding: 5px 6px 4px 6px; *************** *** 33,38 **** --- 39,47 ---- background: {T_TR_COLOR1}; line-height: normal; + text-align: left; padding: 3px 30px 3px 20px; color: #000000; + border: 1px {T_TR_COLOR1}; + border-style: solid solid solid solid; text-decoration: none; cursor: default; *************** *** 46,54 **** background: {T_TR_COLOR2}; color: {T_FONTFACE1}; } .XulMenu .section { background: {T_TR_COLOR1}; ! border: 1px solid; ! border-color: #F1EFE2 #716F64 #716F64 #F1EFE2; padding: 2px 1px 1px 2px; position: absolute; --- 55,65 ---- background: {T_TR_COLOR2}; color: {T_FONTFACE1}; + border: 1px {T_TH_COLOR1}; + border-style: solid solid solid solid; } .XulMenu .section { background: {T_TR_COLOR1}; ! border: 1px {T_TH_COLOR1}; ! border-style: solid solid solid solid; padding: 2px 1px 1px 2px; position: absolute; *************** *** 70,78 **** <script type="text/javascript" src="{MX_ROOT_PATH}modules/mx_shared/mygosumenu/1.4/XulMenu.js"></script> ! <div id="bar"> <table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <tr> ! <td align="left"> ! <table cellspacing="0" cellpadding="0" id="menu{MENU_ID}" class="XulMenu"> <tr> --- 81,89 ---- <script type="text/javascript" src="{MX_ROOT_PATH}modules/mx_shared/mygosumenu/1.4/XulMenu.js"></script> ! <table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <tr> ! <td align="left" class="row1"> ! <div id="bar"> <table cellspacing="0" cellpadding="0" id="menu{MENU_ID}" class="XulMenu"> <tr> *************** *** 89,150 **** </tr> </table> ! </td> </tr> ! </table> ! </div> ! ! <!-- ! Example of initializing: ! var menu = new XulMenu("id_of_the_menu"); ! menu.init(); ! ! Example of initializing and setting additional stuff: ! var menu1 = new XulMenu("menu1"); ! menu1.type = "horizontal"; ! menu1.position.level1.top = 0; ! menu1.position.level1.left = 0; ! menu1.position.levelX.top = 0; ! menu1.position.levelX.left = 0; ! menu1.arrow1 = "images/arrow.gif"; ! menu1.arrow2 = "images/arrow-active.gif"; ! ! Note: ! arrow1 & arrow2 set only when you want the arrow image to change when ! element is active. If you don't want the arrow to change keep both variables empty. ! ! ---------------- ! API ! ---------------- ! ! Controlling the menu: ! ! show(id) ! hide(id) ! hideAll() ! hideHigherOrEqualLevels(n) ! ! id = id of the element ! n = level ! ! examples: ! ! 1) ! menu1.show("menu1-1"); ! ! 2) ! menu1.show("menu1-1"); ! menu1.show("menu1-1-2"); ! menu1.show("menu1-1-2-0"); ! menu1.hideHigherOrEqualLevels(2); ! ! Both examples show the same. ! --> ! ! <script type="text/javascript"> ! var menu1 = new XulMenu('menu' + '{MENU_ID}'); ! menu1.type = "horizontal"; ! menu1.arrow1 = "images/arrow1.gif"; ! menu1.arrow2 = "images/arrow2.gif"; ! menu1.init(); ! </script> \ No newline at end of file --- 100,105 ---- </tr> </table> ! </div> </td> </tr> ! </table> \ No newline at end of file |