Creating a <div>-area inside the menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Steel2k6
Beginner
Beginner
Posts: 6
Joined: Tue Nov 15, 2005 1:18 pm

Creating a <div>-area inside the menu

Post by Steel2k6 »

Hi folks,

I would like to create a <div></div> area inside a menu item - I know this sounds strange, but I have to create a scrollable text inside a menu item.
So in the end it would look like

aI("text=<div style='height:200px;background-color:red;overflow:auto'>mytext</div>" );

But the menu will not show the content. I think it has something to do that the script will be internally parsed for a "<div>" or "</div>" or something like that.

Does anybody know how I could solve this problem?

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

Post by Ruth »

I'm not exactly sure why you need the div? You can set the itemheight inside the aI string and you can set the menu to overflow=scroll which would make any item which has more content than its height scroll.

Ruth
Steel2k6
Beginner
Beginner
Posts: 6
Joined: Tue Nov 15, 2005 1:18 pm

Perfect

Post by Steel2k6 »

Ruth wrote:You can set the itemheight inside the aI string and you can set the menu to overflow=scroll which would make any item which has more content than its height scroll.

Ruth
Thank you, Ruth. This works great! :) I did not know about these menu properties.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: Perfect

Post by John »

Steel2k6 wrote:I did not know about these menu properties.
Hmmm - sounds like some study is in order. :roll:

Use the links in Ruth's sig lines to learn more of what it can do.
John
Post Reply