1) Script Title: HV Menu
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...menu/index.htm
3) Describe problem:
I would like to add the ability to use the target="_blank", ="_parent", ="_top", ="_self" when selecting a menu item that goes to an 'external' web link.
Presently, the settings in the "exmplmenu_var.js" file for each menu item are:
// Menu tree
// MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
// For rollover images set "Text to show" to: "rollover:Image1.jpg:Image2.jpg"
Typical Menu item:
Menu2=new Array("xyz.com News Highlights","http://www.xyz.com/","",0,20,200);
There is no ability to open a new browser window or tab for the external link, that is called in the above item.
In HTML, the code for a new window or tab would be:
<a href="http://www.xyz.com/" target="_blank">"xyz.com News Highlights</a>
How can I add that ability, and where must it be added? In the both the "exmplmenu_var.js" and the "menu_com.js" files?
I've been using the HV Menu 5.5 system for 5 years. I really like it better than the CSS menus I've tried.
I'm not a Java Script programmer, and have no idea where to begin.
Thank you for any advice or ideas you can offer.
I appreciate it very much.