PDA

View Full Version : Accordion Menu Positioning



CRTC
08-02-2008, 07:38 PM
1) Script Title: Glossy Accordion Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-glossy.htm

3) Describe problem: Footer not moving with menu

I have only one problem with this fantastic menu. I've customised a 3 column fixed-fluid-fixed layout from Dynamic Drive and am using the equal menus script which is fabulous.

I've got the menu installed on this page:
http://www.oneclicksoftware.co.uk/downloads/

The Problem

Whenever I expand or contract the menu, the footer at the bottom doesn't move in line with the menu. When the page opens it is fine (i.e. the menu is closed), but as you expand and contract using the links, the footer doesn't move.

Is there a simple remedy to this problem? I would love for this to be solved as I really like this menu.

Many thanks in advance for any assistance you can provide.

Regards

CRTC

ddadmin
08-03-2008, 12:58 AM
Try instructing Equal Columns script to refresh itself each time the Accordion menu is expanded/ contracted, by adding the line in red to the later's config code:


animatespeed: "normal", //speed of animation: "fast", "normal", or "slow"
oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
//do nothing
},
onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
ddequalcolumns.resetHeights()
}
})

That should do it.

BTW, please note that your page is currently in violation of our usage terms, since the credit notice doesn't appear inline on the page. Please reinstate the credit notice: http://www.dynamicdrive.com/notice.htm

CRTC
08-03-2008, 09:15 AM
That works a treat - many thanks!

Apologies for the missing notice - wasn't intentional! Just tearing my hair out trying all sorts of things. Have added it back in. :)