PDA

View Full Version : Anylink Drop down menu problem



Charina
03-07-2007, 03:02 PM
1) Script Title: Any link drop down menu

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

3) Describe problem: I'm using the menu for an author's webpage and she has a lot of links. My problem is the drop down does not collaspe under the link, it opens up over the link and above it, hiding the header. I narrowed the problem down to too many links per drop down... however she needs all the links. Is there a way to configure the drop down to fall down underneath the link even though there are more than 10 items listed in the drop down?

This is the webpage: http://danapollard.blogspot.com/

ddadmin
03-07-2007, 11:37 PM
You can tell the script to always drop down regardless of the height of a menu by finding the code:


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

and remove it.

Charina
03-08-2007, 10:29 PM
You are a gem! It worked! Thank you so much for helping me. As I said before, I'm new to this and until I learn it, it is very difficult to point out errors and such.

Thank you!
Charina


You can tell the script to always drop down regardless of the height of a menu by finding the code:


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

and remove it.