PDA

View Full Version : Any Link Drop Down Menu - How to Position...



dtarver
09-22-2005, 02:34 PM
Hello

I am using the drop down menu code found in the following location.

http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

My question is how can I position the drop down menu since I have it appear when users roll over an image. For example, is you go to www.707bars.com and roll over the first two disco balls, you will see the drop down menus. I want to scoot them a centimeter to the rignt when they drop down. How can I do this?

Thank you,
~D :)

dtarver
09-26-2005, 05:21 PM
Geee... How can I get help on this? :-o

ddadmin
09-26-2005, 11:38 PM
Well there isn't a cm measurement in browsers, so I'll use pixels instead. Try this. Locate the line:


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

and add a number to it to increase the horizontal offset of the menu, for example:


dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+10+"px"

This will create a 10px offset.

dtarver
09-27-2005, 02:23 PM
Perfect.... :D