PDA

View Full Version : AnyLink Drop Down Menu - Text box or combo boxes float over



jaffar_shaikh
01-06-2005, 09:30 PM
Hi

I'm using Anylink Drop Down Menu Java Script in my web project. I have a problem where if I drag the "Drop Down Menu" window over a combination box the combination box or a text field floats over the Drop Down Menu.

How do I make sure that the the combo boxes or text fields over which the "Drop Down Manu" howers is hidden underneath?

function dropdownmenu(obj, e, menuwidth, exitPoint){
var menucontents = gTableMenuHashtable.get(exitPoint)
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
Drag.init(dropmenuobj)
populatemenu(menucontents)

if (ie4||ns6)
{
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
var topEdge = dropmenuobj.y-clearbrowseredge(obj, "bottomedge");
if (topEdge < -10)
{
topEdge = 10;
toggleProperties(false);
}
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=topEdge+"px"
}

I would appreciate your help.

Thanks
Jaffar