Results 1 to 3 of 3

Thread: Smooth menu - submenu offset

  1. #1
    Join Date
    Aug 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Smooth menu - submenu offset

    1) Script Title: ddsmoothmenu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...smoothmenu.htm

    3) Describe problem:

    When a user hovers over a main selection on a horizontal menu, the sub menu drops down aligned left with its parent. Is it possible to have it drop down some distance offset to the right, maybe 30 px?
    Last edited by ddadmin; 08-25-2014 at 09:49 PM.

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

    Default

    Try finding the below line inside the .js file, and change 0 to 30:

    Code:
    					var menuleft = orient === 'down'? 0 : dimensions.w;
    This will offset the top level drop down menu 30 pixels to the right of the main anchor bar, while leaving sub sub menus still showing flush against its parent sub menu. I assume this is what you want, instead of offsetting every sub menu level 30 pixels to the right of its parent.
    DD Admin

  3. #3
    Join Date
    Aug 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The line in my script looks a little different, but the '0' was definitely there. Changing it did exactly what I needed. Thanks!

Similar Threads

  1. Smooth Navigational Menu (v1.5) Submenu Placement
    By BJBIX in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 02-08-2012, 05:07 PM
  2. In smooth menu flash component in submenu unloaded
    By corlie in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 09-04-2011, 07:10 AM
  3. Submenu Repositioning on Smooth Navigational Menu
    By sime0n in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 12-03-2008, 11:33 PM
  4. Anylink CSS Menu - submenu too far offset
    By goodmojo93 in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 02-09-2008, 04:29 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
  •