PDA

View Full Version : All Levels Nav Menu 2.2 - submenus fly out to the left?



Beverleyh
03-22-2011, 07:17 PM
1) Script Title: All Levels Navigational Menu v2.2

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/index.htm

3) Describe problem: This is a query rather than problem - I have a fixed width page layout where the menu is on the right so rather than having the sub-menus fly out to the right, can the script be easily tweeked to make the menus fly out to the left by default, even if the monitor is wide enough to accommodate a right hand flyout?

(at the moment I have just disabled the slide effect)

If its a big job, its no big deal but I just thought I'd enquire on the offchance.

ddadmin
03-23-2011, 05:10 AM
It's easy to get the sub menus to always drop down to the left of the parent UL. However, this doesn't change the slide effect's direction from left-right to right-left instead (which is much more difficult). For the former, inside the .js file, try commenting out the below two lines:


//if (submenurightedge-scrollX>ddlevelsmenu.docwidth){
menuleft+= -this._dimensions.submenuw + (this._istoplevel && dir=="topbar" ? this._dimensions.w : -this._dimensions.w)
//}

Beverleyh
03-23-2011, 09:28 AM
That's great, thank you - I can live without the slide effect so no worries :)