Problem with scrollbar and width of menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Godzidave
Beginner
Beginner
Posts: 9
Joined: Tue Oct 04, 2005 2:27 pm

Problem with scrollbar and width of menu

Post by Godzidave »

Hi,

I have a problem with the width of a popup menu. It contain a image with a width of 800 pixels but I want the width of the menu to be of 200 pixels and scrollable, but the menus is take the width of the image.. Is anyone can help me please??

Here is my code

Code: Select all

_scrollAmount=5      // Used for Netscape 4 scrolling
_scrollDelay=10	     // Used for Netscape 4 scrolling

_menuCloseDelay=0 // The delay for menus to remain visible on mouse off
_menuOpenDelay=10   // The delay for opening menus on mouse over
with(Photo=new mm_style()){
offbgcolor="#ADA989";
bordercolor="#000000";
borderstyle="solid";
borderwidth="1px";
fontfamily="Arial, Tahoma, Helvetica, sans-serif";
fontsize="11px";
fontstyle="normal";
fontweight="normal";
headerbgcolor="#ADA989";
offcolor="#000066";
oncolor="#000066";
itemwidth=200;
offfunction="popdown();";
}

with(milonic=new menuname("Img1")) {
    margin=0;style=Photo;overflow="scroll";valign="middle";align="center";itemwidth=200;itemheight=200;menuwidth=220;menuheight=240;maxwidth=200;
    aI("itemwidth=200;align='center';text=`<img style='width:799px;height:1200px;' src='Image1.jpg' width=799 height=1200>`;");
}
with(milonic=new menuname("Img2")) {
    margin=0;style=Photo;overflow="scroll";valign="middle";align="center";itemwidth=200;itemheight=200;menuwidth=220;menuheight=240;maxwidth=200;
    aI("itemwidth=200;align='center';text=`<img style='width:1216px;height:1800px;' src='Image2.jpg' width=1216 height=1800>`;");
}
For the height of the menu everything is fine and the scroll bar appears on the right side.

Any help will be welcome...

Thank you,

Sorry for my english, I'm frenchspeaking :)
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Can you please point us to a test page? We really need that to test what is happening. Thanks.

Ruth
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

In addition to the URL, I'm at somewhat of a loss as to how you plan on stuffing an 800px image into a 200px space.
John
Godzidave
Beginner
Beginner
Posts: 9
Joined: Tue Oct 04, 2005 2:27 pm

Post by Godzidave »

Well, that's why I need the scrollbar. I want the milonic popup to be 200 X 200 pixels but the picture can be bigger than that, but I want the popup to stay the same size and add the scrollbar.

I can't really post an URL, because it's on a private site, need a password to get in.. :?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Can you please post a test page, or alternatively though not the best way, post the html code, the menu_data.js file, and make sure that the page code has any image sizes in it, and whatever images you have for the menu_data.js file we will need a list of sizes. That way I can attempt to make blank images the right size so I can see what's going on.

As you can see, getting someplace to post a test page which shows the problem would be the easiest for us since we could get the page and work with it.

Ruth
Post Reply