PDA

View Full Version : Dropdown DHTML Control on the left



nihalz
07-26-2007, 06:35 PM
1) Script Title: Dropdown DHTML Control

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

3) Describe problem: Hi..this script works great. I want it to show the dropdown menu below the element, but the dropdown should be left-aligned and not right-aligned...I dont mean the contents of the dropdown, but the whole dropdown DIV itself

From the script page:

position - "x" or "y"- first value causes content to drop down and to the right, and the second, just down.
i want the content to drop down and to the left

Can anyone please tell me how to do that?
Thanks!

ddadmin
07-27-2007, 02:44 AM
Sure, just use the modified dropdown.js file attached below. It adds another option called "x2" that causes the menu to appear to the left of the control (instead of right, which "x" does: position - "x", "x2", or "y"

nihalz
07-27-2007, 12:44 PM
Thanks a lot ddadmin!!
works like a charm!
Can you please also make a "y2" position?
"y2" in the sense that the menu drops down but is aligned to the left...like this:
http://img262.imageshack.us/img262/1680/menuvo0.jpg
Thanks again!