sub-image position - need help!

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

sub-image position - need help!

Post by nwilcox »

http://clients2.serverside.net/onslow/p ... fault.aspx

Roll over the last menu item in the right vertical menu and you can see the sub0menu has subimage arrows that pop to the right of the menu item.

How do I get the sub-image to show to the left?

I'm using the new forceleft parameter.

Thanks!
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Which menu do you want the subimage to be on the left? If it is the main vertical menu, then add subimageposition='left'; in the style for it. If it is the submenu that is opening for Planning, then you probably need to do a copyOf the style for the dept subs and set the subimage position. Example:

Code: Select all

menuStyleDeptSub1=new copyOf(menuStyleDeptSub);
menuStyleDeptSub1.subimageposition="left";
If you created that just as it is, and then set that Planning submenu to have

Code: Select all

with(milonic=new menuname("DeptMenu1403_6")){
style=menuStyleDeptSub1;
openstyle="forceleft";
menuwidth="150px";
itemheight="17px";
align="left";
The existing left arrow would be on the left side of the menu. Also, you are probably going to have to place a transparent gif as an image in the other items that don't have submenus to get them to shift more to the right. Or you could create a class and set an indent for those other items and then call the class in each of the items without a subimage.

One other thing, you have a code in your styles oversubimage= there is no such property in Milonic menus so you might want to remove that. For subimage it is onsubimage. All the others are over, i.e. overimage, overbgimage etc, but with subimage it is on

Ruth
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Post by nwilcox »

thanks Ruth!

I've moved the arrows to the other side and will have to add a spacer image in there to fix the offset for the arrows.

I've also remove dthe "oversubimage" I don't know what I was thinking there! ahaha

One last thing. The Offsets are not working when I use for forceleft setting for open style.... is that correct or am I again putting something in the wrong place :?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I'm not sure what you mean about the offsets. They seem to be working fine. You have them set at 0 so the menus open right next to the item and even with the top of the item that opened them. Try setting them to something else to see if they move. I tried 10 and you can see the submenus move down 10px and to the left 10px, except the long ones which will shift to remain on the viewable area of the page.

Ruth
Post Reply