I am using cross frame menu dropdown. Only problem is submenu is offset to the right.
Return to Recent Questions
Q:
I am using cross frame menu dropdown. I have three frames: Top, Left and main (middle).
I am using the script and data from your sample file; it works
fine. Only problem is submenu is offset to the right. It does not
show up exactly down below the top menu.
What could be the problem?
A:
Deluxe Menu doesn't work correctly (incorrect submenu position) if you
have complex frame structure.
The problem is in a structure of your frameset.
Mozilla browsers can't determine absolute coordinates for a frame, so submenus drop down with an offset.
You should create, for example, the following frameset structure:
--|------------
| menu
--|------------
|
| submenus
|
Now a top row has 2 columns and all browsers can determine a width of the 1st column in the second row.
You should write init function in the following way in that case:
dm_initFrame("mainframe",1,3,0);
Return to Recent Questions
Related:
- Sep 06, 2006 - The alighment of the dropdown menu is off to the right in Firefox...
- Sep 11, 2006 - How can I hide my dropdown menu on print?
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 18, 2006 - The submenus of the cross frame menu are offset by about 100 pixels to the right.
- Sep 18, 2006 - Does the js menu work to load pages into an iframe?
- Sep 26, 2006 - Why is the submenu has a different colour than menu items in the javascript menu bar?
- Sep 30, 2006 - The frame below the javascript menubar is moved to the bottom of the page.
- Oct 06, 2006 - How can I use right-to-left languages in javascript popupmenu?
- Oct 12, 2006 - Can I create a scroll vertical menu on the right side and the subnav popout on the LEFT?
- Oct 22, 2006 - When the html submenus are over applet in https: the applet disappeared.
- Oct 26, 2006 - I would like to load an iframe into one of the items in oncontextmenu.
|