TalkGraphics.com  

Go Back   TalkGraphics.com > Xara Forums > Talk Web > Web Designer / Xtreme / Designer Pro

Reply
 
Thread Tools Display Modes
  #1  
Old 28 January 2010, 03:42 PM
charissepaula charissepaula is offline
Member
 
Join Date: Mar 2007
Posts: 26
Send a message via Skype™ to charissepaula
Default Dynamic Page with vertical menu question - accordion?

I currently have several sites using the dynamic page tweak with horizontal menus (including drop downs)

I have a new website I have begun to design that will have a horizontal category menu. Interior pages will also require a vertical menu with submenu. There is a distinct possiblility in the future the submenus might be nested. Flyout is one option but an accordion would be less cluttered.

The main body of each page will have dynamic content (dynamic page tweak)...

Before I head down this path: my concern is if I end up with one menu with a very large accordian when open, what if the entire menu now exceeds the size of the page (dictated by the dynamic content).

Is there a way around this problem?
Reply With Quote
  #2  
Old 30 January 2010, 05:09 PM
charissepaula charissepaula is offline
Member
 
Join Date: Mar 2007
Posts: 26
Send a message via Skype™ to charissepaula
Default Re: Dynamic Page with vertical menu question - accordion?

It appears from the lack of response there might not be a way to accomplish this or is my description of the problem unclear?
Reply With Quote
  #3  
Old 18 May 2010, 08:28 AM
xtom xtom is offline
Member
 
Join Date: Apr 2010
Location: Kildare, Ireland
XDP6, WD6
Posts: 101
Default Re: Dynamic Page with vertical menu question - accordion?

I just realised I'm having this same problem. I'm thinking it might be possible to use similar javascript that's in the dynamic page to adjust the page length when the accordian is expanded/collapsed.
Reply With Quote
  #4  
Old 19 May 2010, 08:26 PM
xtom xtom is offline
Member
 
Join Date: Apr 2010
Location: Kildare, Ireland
XDP6, WD6
Posts: 101
Default Re: Dynamic Page with vertical menu question - accordion?

OK I managed to get this working really good on the jquery accordian menu that I'm using.

$(theElement) is the part of the accordian that slides in/out so this will vary depending on the script your using. It increases/decreases the page by the height of $(theElement).

I put the follwing code in the jquery accordian menu script, the piece that expands the menu

Code:
/* start expand code for wd6 */
var xri_height = $('#xr_xri').height()+$(theElement).height();
var my_background_height = $('#my_background').height()+$(theElement).height();
var my_footer_position = $('#my_d_footer').position();
var my_footer_pos_top = my_footer_position.top+$(theElement).height();
/* copy from your page the code below and change the clip bottom to 9999px or a value big enough to accomodate all menus expanded */
$('#xr_xri').attr('style', 'width: 957px; clip: rect(0px, 957px, 9999px, 0px);');
$('#xr_xri').height(xri_height);
$('#my_background').height(my_background_height);
$('#my_d_footer').css('top',my_footer_pos_top);
/* end code for wd6 */
And I put the follwing code in the code that contracts the menu
Code:
/* start contract code for wd6 */
var xri_height = $('#xr_xri').height()-$(theElement).height();
var my_background_height = $('#my_background').height()-$(theElement).height();
var my_footer_position = $('#my_d_footer').position();
var my_footer_pos_top = my_footer_position.top-$(theElement).height();
$('#xr_xri').height(xri_height);
$('#my_background').height(my_background_height);
$('#my_d_footer').css('top',my_footer_pos_top);
/* end code for wd6 */
Reply With Quote
  #5  
Old 19 May 2010, 09:24 PM
charissepaula charissepaula is offline
Member
 
Join Date: Mar 2007
Posts: 26
Send a message via Skype™ to charissepaula
Default Re: Dynamic Page with vertical menu question - accordion?

I will give this a try in next website I need a vertical menu... I ended up using a multi-layered horizontal menu - a bit more complex and not easy to maintain
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Flash menu with photos. Egg Bramhill Web Designer / Xtreme / Designer Pro 4 23 April 2009 12:56 AM
Menu bar graphics show only on home page? mreggers Menu Maker 1 02 August 2005 08:07 PM
Error message in page with menu script Xcalak Menu Maker 3 04 November 2004 09:59 AM
Menu anchor link using Webstyle 4 or MenuMaker 1.1 and Dreamweaver MX 2004 Help!! dscrap Site Design and Publishing (non-Xara) 4 17 September 2004 03:50 PM
Horizontal navbar not showing on page with vertical menu bvalaski1 Webstyle 4 08 July 2004 08:22 PM


All times are GMT +1. The time now is 06:12 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
©2006 Xara Group Ltd.