Results 1 to 3 of 3

Thread: Dropdown DHTML Control on the left

  1. #1
    Join Date
    Jun 2007
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dropdown DHTML Control on the left

    1) Script Title: Dropdown DHTML Control

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...owncontrol.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:
    Code:
    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!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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"

  3. #3
    Join Date
    Jun 2007
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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:

    Thanks again!
    Last edited by nihalz; 07-27-2007 at 01:13 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •