PDA

View Full Version : Making changes to Drop Down Tabs menu system



nickgray
01-24-2013, 08:40 PM
1) Script Title: Drop Down Tabs

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

3) Describe problem: I installed this menu several years ago on several sites. One client tells me that now on some of their machines the drop-downs drop UP when screen res is a bit low and not enough page displays for the full length of a dropdown with a lot of menu items.

I realise that this is a problem with old machines, but is there a tweak that can be made to either the javascript or the css to force the long dropdowns to drop down? I like using this straightforward menu system and I want to avoid several hours of time replacing it on that site if the code can be tweaked.

Thanks,

Nick Gray
London, UK

ddadmin
01-25-2013, 06:32 PM
Sure, just commenting out the below portion inside the .js file should do it (addition in red):


/*
if (windowedge-this.dropmenuobj.y < this.dropmenuobj.contentmeasure){ //move up?
edgeoffset=this.dropmenuobj.contentmeasure+obj.offsetHeight
if ((this.dropmenuobj.y-topedge)<this.dropmenuobj.contentmeasure) //up no good either?
edgeoffset=this.dropmenuobj.y+obj.offsetHeight-topedge
}
*/