PDA

View Full Version : Target Iframe with HV menu 5.5



dmg
07-14-2007, 10:16 PM
Hi all,

First time poster...
Is it possible to target iframes with the links found in the HV menu 5.5?

Thank you in advance,
David

ddadmin
07-14-2007, 10:52 PM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

jscheuer1
07-15-2007, 03:50 AM
First you need an iframe on your page with the hvmenu. Next, the iframe needs a (unique) name, ex:


<iframe name="some_name" src="about:blank" width="300" height="300" scrolling="auto" frameborder="1"></iframe>

Now, in the exmplmenu_var.js file, you can do this:


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

dmg
07-19-2007, 07:14 PM
Thank you John, that worked perfectly!

Now, I have another issue with the same menu.. when I resize the window, the menu moves to a different location on the page. How do I make the menu's location static or grouped with the whole web page design?

Thank you in advance,
David

jscheuer1
07-19-2007, 07:56 PM
On the page config.htm (a manual of sorts) that comes with the distribution archive find the info on:

TargetLoc

which is a little more than halfway down the config.htm page.

dmg
07-20-2007, 10:04 PM
Once again, thank you!!