Images in Menu/Sub-Menu items

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Nolly
Beginner
Beginner
Posts: 6
Joined: Wed Dec 10, 2003 5:05 pm

Images in Menu/Sub-Menu items

Post by Nolly »

I would like to have an image in the main menu items (where appropriate)
at the beginning and not at the end (sub-image). I want to retain the image (sub-image) in the sub-menu items.

Can someone please enlighten me on how to do this.

Below, the 'v' and '>' represent menu/sub-menu images.

I have,

v One > v Two > v Three > v Four >
====
Alpha >
Bravo >

I would like,

v One v Two v Three v Four
====
Alpha >
Bravo >

Thanks
Nolly
Beginner
Beginner
Posts: 6
Joined: Wed Dec 10, 2003 5:05 pm

Post by Nolly »

OK, I have found my own solution. It works and it gives me some of the flexibilty I was looking for.

Here is what I did.

//////////////////////////////
// Down Arrow for Main menu //
//////////////////////////////

mainStyle=new copyOf(menuStyle)
mainStyle.subimage="minimil.gif";
mainStyle.subimageposition="left";

/////////////////////////////
// Right Arrow for Sub-menu//
/////////////////////////////

subStyle=new copyOf(menuStyle)
subStyle.subimage="arrow.gif";
subStyle.subimageposition="right";
Post Reply