Click to See Complete Forum and Search --> : Need help with a problem


emsylw
12-10-2003, 04:43 PM
I have used a menu from dynamic drive on my web site that uses javascript which I know nothing about. It works fine, but I want to be able to make the links target to a mini window on my page but I have no idea how to do it.

http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm

the above link is the menu I have used and in the javascript files, the menu is set out like this:

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"
.....................................................

Menu1=new Array("Home","index.htm","",0,20,120);

Menu2=new Array("Band","band.htm","",2);
etc

the target I want it to go to is called "cwindow"

does anyone know how I can do this?
any help would be appreciated, thanks :)

Khalid Ali
12-10-2003, 05:36 PM
there should be a part of code where you can see something like this

window.location.href = url;

if you find somethng like above change it to

window.open(url,'newWin')

emsylw
12-12-2003, 06:14 AM
this is in the code, its similar to what you said, is this the part I should change?:

function GoTo(){
if(this.LinkTxt){
status='';
var HP=Nav4?this.LowLyr:this;
LowItem(HP);
this.LinkTxt.indexOf('javascript:')!=-1?eval(this.LinkTxt):DcLoc.location.href=this.LinkTxt}}