Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:32

sub-image position - need help!


Poster: nwilcox
Dated: Monday July 2 2007 - 16:48:41 BST

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!


Poster: Ruth
Dated: Monday July 2 2007 - 18:53:36 BST

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:
menuStyleDeptSub1=new copyOf(menuStyleDeptSub);
menuStyleDeptSub1.subimageposition="left";


If you created that just as it is, and then set that Planning submenu to have

Code:
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


Poster: nwilcox
Dated: Monday July 2 2007 - 19:55:01 BST

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 :?


Poster: Ruth
Dated: Tuesday July 3 2007 - 1:32:59 BST

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