Results 1 to 8 of 8

Thread: Switch from right to left cascade...

  1. #1
    Join Date
    Feb 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Switch from right to left cascade...

    1) Script Title: http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/

    2) Script URL (on DD): Not live yet...

    3) Describe problem: I need this menu to cascade left instead of right... Should be simple, right? I can't figure it out, probably from staring at too much code... Anyone got a quick way to switch the popouts?


    Osyrys

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

    Default

    By default the script will automatically left position a sub menu if it's too close to the browser's right edge. To force it to do this always, try locating the below chunk of code inside the .js file:

    Code:
    			var menuleft=(this._istoplevel? this._offsets.left + (dir=="sidebar"? this._dimensions.w : 0) : this._dimensions.w)
    			if (submenurightedge-scrollX>ddlevelsmenu.docwidth){
    				menuleft+= -this._dimensions.submenuw + (this._istoplevel && dir=="topbar" ? this._dimensions.w : -this._dimensions.w)
    			}

    and change that to:
    Code:
    			var menuleft=(this._istoplevel? this._offsets.left + (dir=="sidebar"? this._dimensions.w : 0) : this._dimensions.w)
    			menuleft+= -this._dimensions.submenuw + (this._istoplevel && dir=="topbar" ? this._dimensions.w : -this._dimensions.w)
    DD Admin

  3. #3
    Join Date
    Feb 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I changed that code, and it disabled all submenus.. I also made it live so you can see what I mean. It even took the arrows out. Here's where I have what is the basic code from your site, modified as mentioned above...

    http://2monkey.holisticschool.com/demo/demo2.htm

  4. #4
    Join Date
    Feb 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Any luck with this, I'm kinda in a pinch getting it working... I know you're busy...

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

    Default

    Sorry for the delay. There is a closing curly bracket you should have removed (code in red below:

    Code:
    			var menuleft=(this._istoplevel? this._offsets.left + (dir=="sidebar"? this._dimensions.w : 0) : this._dimensions.w)
    			menuleft+= -this._dimensions.submenuw + (this._istoplevel && dir=="topbar" ? this._dimensions.w : -this._dimensions.w)
    			}
    Try removing it from your .js file...
    DD Admin

  6. #6
    Join Date
    Feb 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Same result.... No submenu... Tried it local and live

  7. #7
    Join Date
    Feb 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Nevermind, I missed something... it's popping left now... Any chance on changing the arrows to the left as well?

  8. #8
    Join Date
    Feb 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Please check out...

    http://2monkey.holisticschool.com/

    When I changed the size to fit the page area, you can't get the menus to pop open... When I leave it at 175 width, the menus only pop open over the arrow, and won't allow to slide to the left to get to the submenu... Where can I change this? (may as well give the completed product to you to put on the site as a left cascading menu once we're done... )

    Osyrys

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
  •