Results 1 to 4 of 4

Thread: AnyLink JS Drop Down Menu conflicting with Twitter widget script

  1. #1
    Join Date
    Apr 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default AnyLink JS Drop Down Menu conflicting with Twitter widget script

    1) Script Title: AnyLink JS Drop Down Menu V2.3

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

    3) Describe problem:
    Script is set up and working ok. I am using the [click] option so user must click to see the dropdown menu rather than to hover. I also have a twitter widget on the same page which requires the following
    <script type="text/javascript" src="http://widgets.twimg.com/j/2/widget.js"></script>

    If the page is opened in the chrome browser (18.0.1025.162 m) the dropdown menus activate on hover not on click.
    This does not happen with any other browser.

    If the twiiter widget.js script is disabled the dropdown menu works fine on click.

    Anybody got any ideas?
    Perhaps widget.js and anylinkmenu.js use a varialble with the same name?

    Any help would be greatly appreciated

    Regards

    baked

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

    Default

    Please post a link to the page on your site that contains the problematic script so we can check it out.
    DD Admin

  3. #3
    Join Date
    Apr 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Here is a page to demonstrate the problem:

    http://www.exportcomms.com/test/training.php

    The dropdown menus work in all browsers except chrome.

    Hope you can help.

    Thanks.

    Regards
    baked

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

    Default

    It very well could be a conflict with something in the twitter widget, though it's hard to tell without combing through the code. An easier way if you're only be using the "click" version of revealing Anylink Menu is to find the below line inside the .js file:

    Code:
    revealtype: (relattr.length!=dropmenuid.length && RegExp.$1=="click") || anylinkmenu.ismobile ? "click" : "mouseover",
    and change that to:
    Code:
    revealtype: "click",
    That should hard code the behavior of the menu to be revealed onclick.
    DD Admin

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
  •