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

Urgent Help with Centered Page

Poster: iteams
Dated: Tuesday August 31 2004 - 14:42:13 BST

Hi ,
I just upgraded the script for 3.4 to 5.43. The site was aligned to the left now we need to align it to the center.

How do I bind the popout menus to the cell the mouseover button is in.

I am not using the main menu, just the individual menus.

This is an example of the coding I am using with the mouseover.

<td width="156">
<a href="../products.htm"
onMouseOut="MM_swapImgRestore();popdown()" onMouseOver="MM_swapImage('Image13','','../images/mouseover/products.gif',1);popup('products')"><img src="../images/default/products.gif" name="Image13" width="156" height="23" border="0">



Poster: kevin3442
Dated: Tuesday August 31 2004 - 16:42:50 BST

Hi Sean,

You are giving your submenus absulute positions by setting their top and left properties. If you do that, they will always open in the same location, no matter where the mainmenu "button" image is. Instead, remove top= and left= from the menu definitions. Then:

(1) Give each of the main menu images an id and name, using the id= and name= attributes inside the <img> tag.

(2) Specify the image name/id you want to use as a location anchor in the call to popup(). E.g.
popup("products", "products_main");

would open the "products" submenu at the image named "products_main".

You can read more about the variations of the popup() method here.

Hope that helps,


Poster: iteams
Dated: Tuesday August 31 2004 - 18:22:40 BST

Thanks keven,

That was perfect.


Poster: kevin3442
Dated: Tuesday August 31 2004 - 18:36:02 BST

You're welcome.

One other note... if you want to bump the submenus over some, you can supply top and left offets in your call to popup():
popup(menuName, imageName, topOffset, leftOffset);



Using text links instead of images

Poster: iteams
Dated: Thursday September 23 2004 - 5:35:46 BST

Hi Kevin and Andy,

How do I center align if I am using text links only.

So I won't have images to use for id and name?



Poster: Ruth
Dated: Thursday September 23 2004 - 6:37:57 BST

I looked at the page, could you be a little more descriptive as to what you want to do, what it is you want to be centered?


Horizontal Scroll Bars

Poster: iteams
Dated: Thursday September 23 2004 - 6:44:50 BST

Hi Ruth,

I fixed the last problem but I just noticed. When the main table is aligned to the center the horizontal scroll bars are forced wider than the page should be.

If I align default there is not problem, just when I align center. The main table is onlt 780 wide.