View Full Version : AnyLink Browser Problems

05-11-2005, 10:01 PM
I'm using the anylink dropdown menu on a site and it works great in ie, but when I test it in netscape or firefox the dropdown flies all the way to the right edge. Can anyone help? the link to check is:

Thanks in advance!


05-12-2005, 12:25 AM
The problem is as a result of the changes you made to try and get the menu to drop down to the right of the link (instead of the default downwards). Anyhow, I've made the correct change you should implement to do this correctly. Firstly, restore the original script, so to remove the changes you made. Then, locate the lines:

dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"

and replace that with:

dropmenuobj.style.left=dropmenuobj.x+obj.offsetWidth+1-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"

This will cause the menu to drop down to the right.

05-12-2005, 02:06 PM
It worked! Thank you so much - you are officially my hero!