Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javscript mm_show menu issue

Status
Not open for further replies.

chrisd33

Technical User
Aug 22, 2005
6
GB
Hi

I have the following piece of code that uses the javascript event MM_show menu that displays drop down menus directly beneath the image, but i wish the the options director and administrator menu to be indented from the image above - any ideas how i'd do this ?

window.mm_menu_1006144429_0 = new Menu("root",181,18,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#000000","#FF0000","#999999","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_1006144429_0.addMenuItem("Director","location='../contactus/Petermoth.htm'");
mm_menu_1006144429_0.addMenuItem("Administrator","location='../contactus/GillianSton.htm'");
mm_menu_1006144429_0.fontWeight="bold";
mm_menu_1006144429_0.hideOnMouseOut=false;
mm_menu_1006144429_0.bgColor='#666666';
mm_menu_1006144429_0.menuBorder=1;
mm_menu_1006144429_0.menuLiteBgColor='#FFFFFF';
mm_menu_1006144429_0.menuBorderBgColor='#666666';

Here is the script where i reference it

<p><a href="javascript:;" onMouseOver="MM_swapImage('Director','','../resources/nw/contactlist/Director_MD.gif','Editorial','','../resources/nw/contactlist/Editorial_on.gif','xxx','','../resources/nw/contactlist/xxx_on.gif','Production','','../resources/nw/contactlist/Production_on.gif','Sales','','../resources/nw/contactlist/Sales_on.gif','Technical','','../resources/nw/contactlist/Technical_on.gif',1);MM_showMenu(window.mm_menu_1006144429_0,0,17,null,'Director')" onKeyPress="MM_swapImgRestore()"><img src="../resources/nw/contactlist/Director_MD.gif" name="Director" width="140" height="14" border="0" id="Director"></a></p>

Regards

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top