PDA

View Full Version : Chrome Menu: Always drop DOWN



Hutch
09-04-2006, 09:43 PM
1) Script Title: Chrome CSS Drop Down Menu

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

3) Describe problem:
The menu drops out in way you can always see the whole layer. Its hard to explain, so go to http://www.dynamicdrive.com/dynamicindex1/chrome/index.htm and scroll down until the menu is at the bottom of the browser window. Now it does no longer drop down, but drop out on top of the menubar.
Well, i think this may be a nice feature, but in my case i need to turn that off; i want the menu to drop down, nevermind if its cut.
I hope that you can understand my problem :)

Thank you a lot for your help!

ddadmin
09-05-2006, 12:24 AM
If I understand correctly then, you want to disable the feature of the menu that causes the menu to drop up when there's not enough space in the browser underneath the menu to fully display it? Not sure why you'd want to do this, but if so, find the line:


this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+1+"px"

and change that to:


this.dropmenuobj.style.top=this.dropmenuobj.y+obj.offsetHeight+1+"px"

That should do it.

Hutch
09-05-2006, 07:04 PM
Perfect, now it works as i want it to :)
Thanks a lot!