View Full Version : Link Targets in AnyLink JS v2.2

01-26-2011, 11:50 PM
1) Script Title: AnyLink JS Drop Down Menu v2.2

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

3) Describe problem: In the menucontents.js file one can set the "target" for ALL the submenu items of a particular menu to either open in a new window or the same window. All items in that menu take on that setting. I want to diversify the menu so that some items in the submenu open in the same window while others open in a new window... HOW?

01-27-2011, 11:46 AM
There is another version of the anylink drop down menu where the menu content is in the html and not in the javascript. Here is a link to that menu (http://www.dynamicdrive.com/dynamicindex1/anylinkcss.htm)
You can specify the link target individually, like this:

<li><a href="http://www.dynamicdrive.com/" target="_blank">Dynamic Drive</a></li>

This will open in a new window. If you don't specify the target it opens in the same window.

01-28-2011, 01:46 AM
Thank you... Your HTML version suggestion works as I needed! PH:):)