View Full Version : AnyLink JS Drop Down Menu conflicting with Twitter widget script

04-18-2012, 04:58 PM
1) Script Title: AnyLink JS Drop Down Menu V2.3

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.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



04-18-2012, 09:04 PM
Please post a link to the page on your site that contains the problematic script so we can check it out.

04-19-2012, 09:35 AM
Here is a page to demonstrate the problem:


The dropdown menus work in all browsers except chrome.

Hope you can help.



04-20-2012, 04:36 AM
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:

revealtype: (relattr.length!=dropmenuid.length && RegExp.$1=="click") || anylinkmenu.ismobile ? "click" : "mouseover",

and change that to:

revealtype: "click",

That should hard code the behavior of the menu to be revealed onclick.