//Menu object creation oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname //Menu properties //Using the cm_page object to place the menu ---- oCMenu.fromLeft=72; oCMenu.fromTop=117 oCMenu.rows=1 oCMenu.pxBetween=0 //How much space you want between each of the top items. - Value: px || "%" oCMenu.offlineRoot="" oCMenu.onlineRoot="" oCMenu.resizeCheck=1 oCMenu.wait=1000 oCMenu.fillImg="images/spacer.gif" //"images/cm_fill.gif" oCMenu.zIndex=100 //Background bar properties oCMenu.useBar=0 //If you want to use a background-bar for the top items set this on - Value: 1 || 0 //oCMenu.barColor="#CC0000" //The color of the background bar - Value: "color" oCMenu.barWidth="100%" //The width of the background bar. Set this to "menu" if you want it to be the same width as the menu. (this will change to match the border if you have one) - Value: px || "%" || "menu" oCMenu.barHeight=24 //The height of the background bar. Set this to "menu" if you want it to be the same height as the menu. (this will change to match the border if you have one) - Value: px || "%" || "menu" oCMenu.barX=0 //The left position of the bar. Set this to "menu" if you want it be the same as the left position of the menu. (this will change to match the border if you have one) - Value: px || "%" || "menu" oCMenu.barY="menu" //The top position of the bar Set this to "menu" if you want it be the same as the top position of the menu. (this will change to match the border if you have one) - Value: px || "%" || "menu" oCMenu.barClass="clBar" oCMenu.barBorderX=0 oCMenu.barBorderY=0 oCMenu.barBorderClass=0 //oCMenu.menuplacement=new Array(10,200,400,600) oCMenu.menuPlacement="center" //Level properties - ALL properties have to be specified in level 0 oCMenu.level[0]=new cm_makeLevel() //Add this for each new level oCMenu.level[0].width="93" oCMenu.level[0].height="21" oCMenu.level[0].regClass="clLevel0" oCMenu.level[0].overClass="clLevel0over" oCMenu.level[0].borderX=0 oCMenu.level[0].borderY=0 oCMenu.level[0].borderClass="clLevel0border" oCMenu.level[0].offsetX=0 oCMenu.level[0].offsetY=0 oCMenu.level[0].rows=0 oCMenu.level[0].arrow=0 oCMenu.level[0].arrowWidth=0 oCMenu.level[0].arrowHeight=0 oCMenu.level[0].align="bottom" //EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this oCMenu.level[1]=new cm_makeLevel() //Add this for each new level oCMenu.level[1].regClass="clLevel1" oCMenu.level[1].overClass="clLevel1over" oCMenu.level[1].width=126 //The default width for each level[1] (top) items. You can override this on each item by spesifying the width when making the item. - Value: px || "%" oCMenu.level[1].height=21 //The default height for each level[1] (top) items. You can override this on each item by spesifying the height when making the item. - Value: px || "%" oCMenu.level[1].borderX=0 oCMenu.level[1].borderY=0 oCMenu.level[1].borderClass="clLevel1border" oCMenu.level[1].offsetX=0 //The X offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px oCMenu.level[1].offsetY=0 //The Y offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px oCMenu.level[1].rows=0 oCMenu.level[1].arrow=0 oCMenu.level[1].arrowWidth=0 oCMenu.level[1].arrowHeight=0 oCMenu.level[1].align="right" //Value: "top" || "bottom" || "left" || "right" //EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this oCMenu.level[2]=new cm_makeLevel() //Add this for each new level oCMenu.level[2].regClass="clLevel2" oCMenu.level[2].overClass="clLevel2over" oCMenu.level[2].width=133 //The default width for each level[2] (top) items. You can override this on each item by spesifying the width when making the item. - Value: px || "%" oCMenu.level[2].height=21 //The default height for each level[2] (top) items. You can override this on each item by spesifying the height when making the item. - Value: px || "%" oCMenu.level[2].borderX=0 oCMenu.level[2].borderY=0 oCMenu.level[2].borderClass="clLevel2border" oCMenu.level[2].offsetX=0 //The X offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px oCMenu.level[2].offsetY=0 //The Y offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px oCMenu.level[2].rows=0 oCMenu.level[2].arrow=0 oCMenu.level[2].arrowWidth=0 oCMenu.level[2].arrowHeight=0 oCMenu.level[2].align="left" //Value: "top" || "bottom" || "left" || "right"