Log in

View Full Version : HV Menu v5.5 question.



bill1082
05-10-2007, 10:41 PM
1) Script Title: HV Menu v5.5

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm
3) Describe problem:
I want to add a target to the links in the menu:
ex... to open a window in a new browser

target=_blank


or even to open it up in an iframe.
I'm unsure of the scrpit used and was hoping that someone could help guide me to the right direction for it.

Thanks in advance.

jscheuer1
05-11-2007, 05:19 AM
Modified from the demo exmplmenu_var.js file:


Menu2_1_1=new Array("CNN","javascript:window.open('http://www.cnn.com')","",0,20,150);

Will open in a new window (it's like target="_blank"). To target a named frame or named iframe:


Menu2_1_1=new Array("CNN","javascript:window.open('http://www.cnn.com','frame_name')","",0,20,150);

It's like:

target="frame_name"