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

Problem with scrollbar and width of menu


Poster: Godzidave
Dated: Wednesday October 11 2006 - 15:02:02 BST

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:
_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 :)


Poster: Ruth
Dated: Wednesday October 11 2006 - 22:20:35 BST

Hi,

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

Ruth


Poster: John
Dated: Wednesday October 11 2006 - 22:23:57 BST

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.


Poster: Godzidave
Dated: Thursday October 12 2006 - 13:31:51 BST

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


Poster: Ruth
Dated: Thursday October 12 2006 - 16:00:41 BST

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