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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Horizontal pop-up menu cell width

Status
Not open for further replies.

hotmailisforloosers

Programmer
Jun 22, 2004
25
0
0
US
I created a pop-up menu using the behaviors in Dreamweaver and now I'm trying to fix the things up so that it's actually presentable. The big problem I'm having is that it's a horizontal menu and the width of each individual link cell is not modifiable.... I can only select one set width for all of the cells (which looks terrible when you have one link that fills the block and another that is stranded way out in the middle of this huge space.

So the horizontal menu ends up looking something like:

_________LINK___________ _THISISALONGLINK_ _ANOTHERLONGLINK_ __________SHORT__________ _________SHORT__________

... trust me, it's awful when you see it like that on a page. So is there some way to make the cell FIT to the text of the link?... rather than defining one set width for every link?

.... here is a snippet of code for one of the pop-up menu links:

Code:
window.mm_menu_0729161741_0 = new Menu("root",140,21,"Arial, Helvetica, sans-serif",9,"#336699","#3399CC","#FFFFFF","#FFFFFF","center","middle",3,0,1,-50,7,true,false,false,0,true,true);
mm_menu_0729161741_0.addMenuItem("asdf","location='cond.html'");
mm_menu_0729161741_0.addMenuItem("asdf","location='child.html'");
mm_menu_0729161741_0.addMenuItem("asdf","location='health.html'");
mm_menu_0729161741_0.addMenuItem("asdf","location='kiddies.html'");
mm_menu_0729161741_0.addMenuItem("asdf","location='kiddies.html'");
mm_menu_0729161741_0.addMenuItem("asdf","location='kiddies.html'");
mm_menu_0729161741_0.addMenuItem("asdf","location='kiddies.html'");
mm_menu_0729161741_0.hideOnMouseOut=false;
mm_menu_0729161741_0.bgColor='#555555';
mm_menu_0729161741_0.menuBorder=1;
mm_menu_0729161741_0.menuLiteBgColor='#FFFFFF';
mm_menu_0729161741_0.menuBorderBgColor='#777777';

The definted width for all of them is that '140'

Any help is appreciated, thanks.
 
No help for this one?... I'm pretty stuck, and it seems like something that should be pretty easy to modify.
 

Surely if you have legitimately purchased Dreamweaver you can approach Macromedia for support?

Dan
 
I don't have much time, contacting them would take too much of it. I don't think they could do any good anyway, since it appears to me to just be a limitation of their behavior.............. which is why I'm looking for a javascript solution to work around the problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top