Results 1 to 3 of 3

Thread: Anylink Dropmenu

  1. #1
    Join Date
    Nov 2010
    Posts
    6
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Question Anylink Dropmenu

    1) Script Title: Anylink Dropmenu

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

    3) Describe problem:

    As used on
    The Pathway Machine

    On my computer the menu works fine, but on two other computers I have checked the menu runs off the left side of the monitor preventing some people from seeing the first and half of the second column.

    One of the monitors is smaller than mine but the other is bigger. Mine and the second are widescreen monitors. My resolution is 1280x720 - the smaller monitor (which obscures part of the menu) resolution is 1024x768 the larger monitor (which obscures part of the menu) resolution is 1440x900.

    I've messed about with the code but without sucess. Is there any way I can fix this or do I just have too big a menu for some monitors?

    ETA: All three PCs use the same version of IE with pretty much the same settings as far as I am aware.
    Last edited by David Henson; 11-29-2010 at 07:01 PM. Reason: Additional Info

  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 lines inside the .js file, and add to it the code in red:

    Code:
    	if (posx+this.dimensions.dropmenuw+this.effects.shadow.depth[0]>this.dimensions.docscrollx+this.dimensions.docwidth){ //drop left instead?
    		posx=posx-this.dimensions.dropmenuw + (menu.orientation=="lr"? -this.dimensions.anchorw : this.dimensions.anchorw)
    		posx=Math.max(posx, 0)
    	}
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    David Henson (11-30-2010)

  4. #3
    Join Date
    Nov 2010
    Posts
    6
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ddadmin View Post
    Try finding the below lines inside the .js file, and add to it the code in red:

    Code:
    	if (posx+this.dimensions.dropmenuw+this.effects.shadow.depth[0]>this.dimensions.docscrollx+this.dimensions.docwidth){ //drop left instead?
    		posx=posx-this.dimensions.dropmenuw + (menu.orientation=="lr"? -this.dimensions.anchorw : this.dimensions.anchorw)
    		posx=Math.max(posx, 0)
    	}
    Okay, that worked. Thanks, Good work!
    Last edited by David Henson; 11-30-2010 at 07:39 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
  •