_subOffsetLeft

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
laurie
Beginner
Beginner
Posts: 8
Joined: Wed Jan 31, 2007 3:41 pm

_subOffsetLeft

Post by laurie »

Hi, I'm sure there must be a simple answer to this but I'm at a loss to spot it right now

I'm using sample89_ver5_902 and I'd like to offset the sub menu background images to be centered underneath the main menu buttons, rather than be anchored top left. I assumed that the _subOffsetLeft parameter would do this, but to no avail. Anybody tell me what I'm doing wrong please?

Sample URL at: http://www.webezedev.net/nhga/index.php What I'd like it to do is: http://www.webezedev.net/nhga/NHGA_home.jpg

Many thanks

L
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: _subOffsetLeft

Post by Andy »

Hi,

Try using a menu offset, like this:

Code: Select all

with(milonic=new menuname("categories")){
left="offset=-30";
style=background;
itemwidth=175;
aI("bgimage=graphics/sub_01.png;text=HOUSE BUILDERS;itemheight=38;url=index.php;");
aI("bgimage=graphics/sub_02.png;text=LANDSCAPE ARCHITECTS & GARDEN DESIGNERS;itemheight=45;url=index.php;");
aI("bgimage=graphics/sub_03.png;text=OPEN CATEGORIES;itemheight=35;url=index.php;");
}

You can do both top and left offsets as well as positive and negative values.

Hope this helps,
Andy
laurie
Beginner
Beginner
Posts: 8
Joined: Wed Jan 31, 2007 3:41 pm

Re: _subOffsetLeft

Post by laurie »

Cheers Andy, worked a treat. All the best
L
Post Reply